Skip to content

Commit

Permalink
Use set-output before old method deprecated and examine head ref.
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorBenson committed May 1, 2023
1 parent 6921938 commit 8d084c4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/premerge_rockylinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- name: Extract branch from PR
- name: Examine head ref
run: echo "The value of head ref is: ${GITHUB_HEAD_REF}"
- name: Extract branch from PR (set-output)
shell: bash
run: |
echo "##[set-output name=branch;]${GITHUB_HEAD_REF}"
echo "##[set-output name=owner;]${GITHUB_REPOSITORY_OWNER}"
echo "BRANCH=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
echo "branch=${GITHUB_HEAD_REF}" >> $GITHUB_OUTPUT
echo "OWNER=${GITHUB_REPOSITORY_OWNER}" >> $GITHUB_OUTPUT
echo "owner=${GITHUB_REPOSITORY_OWNER}" >> $GITHUB_OUTPUT
id: pr_branch
- name: Testing guild-deploy.sh (IO fork of libsodium)
run: |
Expand Down

0 comments on commit 8d084c4

Please sign in to comment.