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: Check if outputs are validated by a qc program in another branch | |
on: | |
pull_request: | |
branches: | |
- main | |
- dev | |
jobs: | |
check_if_outputs_are_qced: | |
runs-on: ubuntu-latest | |
permissions: | |
issues: write | |
contents: write | |
pull-requests: write | |
discussions: write | |
steps: | |
- name: Current branch | |
id: get-branch | |
run: echo "::set-output name=BRANCH_NAME::$(echo ${GITHUB_HEAD_REF})" | |
- name: Check qc branch exists | |
id: qc-branch-exists | |
run: | | |
echo $BRANCH_NAME | |
export BRANCHES=$(git branch -r) | |
echo $BRANCHES | grep ${{ steps.get-branch.outputs.branch }} |