Validate code in the merge queue (pre) #162
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: Validate code in the merge queue (pre) | |
on: | |
workflow_dispatch: | |
create: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
- labeled | |
- closed | |
jobs: | |
pre-merge-queue: | |
name: Ready for mergequeue | |
# The only way to set different required status checks to a pre-queue and a post-queue , | |
# (i.e. before merging and in merge queue), is to have two jobs with the same name, one that triggers on pull_request, | |
# and another on merge_group. | |
# The 'Ready for mergequeue' which is triggered on pull_request (unicorn.yml) is a required status to be able to merge | |
# The 'Ready for mergequeue' triggered on merge_group here will block merging untill it has completed with success. | |
# (https://medium.com/@kojoru/how-to-set-up-merge-queues-in-github-actions-59381e5f435a) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Dump GitHub context | |
env: | |
GITHUB_CONTEXT: ${{ toJson(github) }} | |
run: | | |
echo "$GITHUB_CONTEXT" | |
- name: Merge queue pre-check | |
run: | | |
sleep 15 && echo "Putting stuff in merge queue now that I am awake" |