fix(authorship): Forward-fix a test that will require the gear-bank account to exist #302
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: PR | |
on: | |
pull_request: | |
branches: [master, vara-stage-1, vara-stage-2, vara-stage-3] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
CARGO_INCREMENTAL: 0 | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: short | |
TERM: xterm-256color | |
BINARYEN_VERSION: version_111 | |
jobs: | |
status: | |
runs-on: ubuntu-latest | |
outputs: | |
cache: ${{ steps.check-commit-message.outputs.cache }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Check Commit Message | |
id: check-commit-message | |
run: | | |
MESSAGE=$(git show -s --format=%s) | |
CACHE=true | |
if [[ $MESSAGE == *"[skip-cache]"* ]]; then | |
CACHE="" | |
fi | |
echo "cache: ${CACHE}" | |
echo "cache=${CACHE}" >> $GITHUB_OUTPUT | |
- name: Set sccache path | |
if: ${{ steps.check-commit-message.outputs.cache }} | |
run: | | |
sccache_path="/mnt/sccache/$(echo ${GITHUB_REF#refs/heads/} | tr / _)" | |
echo "cache=$sccache_path" >> $GITHUB_OUTPUT | |
check: | |
needs: status | |
uses: ./.github/workflows/check.yml | |
with: | |
cache: ${{ needs.status.outputs.cache }} | |
build: | |
needs: status | |
if: >- | |
contains(github.event.pull_request.labels.*.name, 'A0-pleasereview') | |
|| contains(github.event.pull_request.labels.*.name, 'A2-mergeoncegreen') | |
uses: ./.github/workflows/build.yml | |
with: | |
cache: ${{ needs.status.outputs.cache }} | |
macos: ${{ contains(github.event.pull_request.labels.*.name, 'E2-forcemacos') }} |