mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
devops: replace deprecated set-output command with environment file (#20752)
This commit is contained in:
parent
a93cf767a1
commit
d962f3b70a
@ -48,12 +48,12 @@ jobs:
|
||||
git commit -m "$COMMIT_MESSAGE"
|
||||
done
|
||||
LAST_COMMIT_MESSAGE=$(git show -s --format=%B)
|
||||
echo "::set-output name=PR_TITLE::$LAST_COMMIT_MESSAGE"
|
||||
echo "PR_TITLE=$LAST_COMMIT_MESSAGE" >> $GITHUB_OUTPUT
|
||||
- name: Prepare branch
|
||||
id: prepare-branch
|
||||
run: |
|
||||
BRANCH_NAME="cherry-pick-${{ github.event.inputs.version }}-$(date +%Y-%m-%d-%H-%M-%S)"
|
||||
echo "::set-output name=BRANCH_NAME::$BRANCH_NAME"
|
||||
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
||||
git checkout -b "$BRANCH_NAME"
|
||||
git push origin $BRANCH_NAME
|
||||
- name: Create Pull Request
|
||||
|
||||
@ -25,7 +25,7 @@ jobs:
|
||||
id: prepare-branch
|
||||
run: |
|
||||
BRANCH_NAME="roll-into-pw-${{ github.event.client_payload.browser }}/${{ github.event.client_payload.revision }}"
|
||||
echo "::set-output name=BRANCH_NAME::$BRANCH_NAME"
|
||||
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
||||
git config --global user.name github-actions
|
||||
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||
git checkout -b "$BRANCH_NAME"
|
||||
|
||||
4
.github/workflows/roll_driver_nodejs.yml
vendored
4
.github/workflows/roll_driver_nodejs.yml
vendored
@ -22,9 +22,9 @@ jobs:
|
||||
echo "there are no changes";
|
||||
exit 0;
|
||||
fi
|
||||
echo "::set-output name=HAS_CHANGES::1"
|
||||
echo "HAS_CHANGES=1" >> $GITHUB_OUTPUT
|
||||
BRANCH_NAME="roll-driver-nodejs/$(date +%Y-%b-%d)"
|
||||
echo "::set-output name=BRANCH_NAME::$BRANCH_NAME"
|
||||
echo "BRANCH_NAME=$BRANCH_NAME" >> $GITHUB_OUTPUT
|
||||
git config --global user.name github-actions
|
||||
git config --global user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||
git checkout -b "$BRANCH_NAME"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user