Skip to content

Commit

Permalink
fix(ci): move untrusted gh context to envvar
Browse files Browse the repository at this point in the history
  • Loading branch information
raphdev committed May 15, 2024
1 parent 2dc53d7 commit 58fc32e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/mergify-ready.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ jobs:
with:
fetch-depth: 0
- shell: bash
env:
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
HEAD_LABEL: ${{ github.event.pull_request.head.label }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
BASE_LABEL: ${{ github.event.pull_request.base.label }}
run: |
HEAD_SHA=${{ github.event.pull_request.head.sha }}
HEAD_LABEL="${{ github.event.pull_request.head.label }}"
BASE_SHA=${{ github.event.pull_request.base.sha }}
BASE_LABEL="${{ github.event.pull_request.base.label }}"
merge_commits=$(git rev-list --merges "$BASE_SHA".."$HEAD_SHA")
if [ -n "$merge_commits" ]; then
Expand Down

0 comments on commit 58fc32e

Please sign in to comment.