ci: fix github.base_ref for merge_groups #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ref-print | |
on: | |
pull_request: | |
merge_group: | |
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: fail-if | |
if: github.event_name != 'merge_group' | |
run: "false" |