GitLab #246
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: GitLab | |
# NOTE(mhayden): Restricting branches prevents jobs from being doubled since | |
# a push to a pull request triggers two events. | |
on: | |
pull_request: | |
branches: | |
- "*" | |
# for merge queue | |
merge_group: | |
jobs: | |
gitlab-ci-helper: | |
name: "Gitlab CI trigger helper" | |
runs-on: ubuntu-latest | |
env: | |
SKIP_CI: ${{ (github.event.pull_request.draft == true || contains(github.event.pull_request.labels.*.name, 'WIP')) && !contains(github.event.pull_request.labels.*.name, 'WIP+test') }} | |
steps: | |
- name: Write PR status | |
run: echo "$SKIP_CI" > SKIP_CI.txt | |
- name: Upload status | |
uses: actions/upload-artifact@v3 | |
with: | |
name: PR_STATUS | |
path: SKIP_CI.txt |