bq - check if table does not exist, raise exception #96
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: Branch Descendant Validation | |
on: | |
pull_request: | |
branches: | |
- develop | |
- master | |
jobs: | |
check-branch-descendant: | |
name: Check nearest MST ancestor is Master. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.head_ref }} | |
- name: Run colpal/actions-branch-descendant | |
id: actions-branch-descendant | |
continue-on-error: true | |
uses: colpal/actions-branch-descendant@master | |
- name: Update Pull Request | |
uses: actions/[email protected] | |
env: | |
VALID: "${{ steps.actions-branch-descendant.outputs.valid }}" | |
PR_STRING: "${{ steps.actions-branch-descendant.outputs.PR-string }}" | |
PARENT: "${{ steps.actions-branch-descendant.outputs.closest-MST-parent }}" | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
script: | | |
const output = `### ${ process.env.PR_STRING } | |
#### Closest MST parent branch needs to be: \`Master\`. | |
#### Closest MST parent branch is: \`${ process.env.PARENT }\`. | |
#### Closest MST parent is Master? \`${ process.env.VALID }\`. | |
#### Read more about MST here: https://github.com/colpal/MST-branching. | |
### ${ process.env.PR_STRING }`; | |
github.issues.createComment({ | |
issue_number: context.issue.number, | |
owner: context.repo.owner, | |
repo: context.repo.repo, | |
body: output | |
}) |