Merge pull request #3067 from nextcloud/chore/noid/migrateGHOutputVariablesTest

Migrate output variables to new GH output variables
This commit is contained in:
Andy Scherzinger 2023-06-01 20:10:07 +02:00 committed by GitHub
commit 882ba341a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,14 +19,14 @@ jobs:
run: | run: |
if [ -z "$GITHUB_HEAD_REF" ]; then if [ -z "$GITHUB_HEAD_REF" ]; then
# push # push
echo "::set-output name=branch::$GITHUB_REF_NAME" echo "branch=$GITHUB_REF_NAME" >> "$GITHUB_OUTPUT"
echo "::set-output name=pr::$GITHUB_RUN_ID" echo "pr=$GITHUB_RUN_ID" >> "$GITHUB_OUTPUT"
echo "::set-output name=repo::${{ github.repository }}" echo "repo=${{ github.repository }}" >> "$GITHUB_OUTPUT"
else else
# pull request # pull request
echo "::set-output name=branch::$GITHUB_HEAD_REF" echo "branch=$GITHUB_HEAD_REF" >> "$GITHUB_OUTPUT"
echo "::set-output name=pr::${{ github.event.pull_request.number }}" echo "pr=${{ github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
echo "::set-output name=repo::${{ github.event.pull_request.head.repo.full_name }}" echo "repo=${{ github.event.pull_request.head.repo.full_name }}" >> "$GITHUB_OUTPUT"
fi fi
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
with: with: