request: update client files for ministry-of-finance-data-catalogue-4832 #4556
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: Check Code/Commit Conventions | |
on: pull_request | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: hmarr/debug-action@v2 | |
- uses: actions/checkout@v2 | |
- name: Get PR | |
id: pr | |
run: | | |
pr=$(curl ${{ github.event.pull_request._links.self.href }}) | |
labels=$(jq ".labels" <<< "$pr") | |
botLabel=$(jq -c '.[] | select(.name | contains("auto_generated")).name' <<< "$labels") | |
echo "::set-output name=botLabel::$botLabel" | |
- name: Setup Tools | |
if: steps.pr.outputs.botLabel != '"auto_generated"' | |
uses: bcgov/sso-requests-actions/actions/setup-tools@v0.63.0 | |
- name: Rerun Pre-Commit Hooks on CI | |
if: steps.pr.outputs.botLabel != '"auto_generated"' | |
run: pre-commit run --color=always --show-diff-on-failure --all-files | |
commitlint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: wagoid/commitlint-github-action@v2 |