Skip to content

Commit

Permalink
fixup! fixup! ci: testing workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Nov 8, 2023
1 parent 40d2f4a commit 0b1a3e4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/reftest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@ jobs:
ref-print:
runs-on: ubuntu-latest
steps:
- name: github.base_ref
run: echo github.base_ref=${{ github.base_ref }}
- name: github.merge_group.base_ref
run: echo github.event.merge_group.base_ref=${{ github.event.merge_group.base_ref }}
- name: set CI_BASE_BRANCH
run: |
if [ -n "${{ github.base_ref }}" ]; then
echo "CI_BASE_BRANCH=${{ github.base_ref }}" >> $GITHUB_ENV
elif [ -n "${{ github.event.merge_group.base_ref }}" ]; then
echo "CI_BASE_BRANCH=${{ github.event.merge_group.base_ref }}" | sed s.=refs/heads/.=. >> $GITHUB_ENV
fi
- name: echo CI_BASE_BRANCH
run: echo CI_BASE_BRANCH=$CI_BASE_BRANCH
- name: fail-if
if: github.event_name == 'merge_group'
run: "false"

0 comments on commit 0b1a3e4

Please sign in to comment.