feat!: add WASIX asset pipeline and protocol recovery #42
Workflow file for this run
This file contains hidden or 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: Conventional Commits | |
| on: | |
| pull_request: | |
| types: [opened, edited, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| concurrency: | |
| group: conventional-commits-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| CARGO_TERM_COLOR: always | |
| PREK_VERSION: 0.3.10 | |
| jobs: | |
| conventional: | |
| name: Validate commit and PR title | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
| persist-credentials: false | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9 | |
| with: | |
| toolchain: 1.92 | |
| - uses: Swatinem/rust-cache@e18b497796c12c097a38f9edb9d0641fb99eee32 | |
| - name: Install prek | |
| uses: taiki-e/install-action@1f2425cdb59f8fffb99ee16a5968edf6f57a2b93 | |
| with: | |
| tool: prek@${{ env.PREK_VERSION }} | |
| - name: Check PR title | |
| if: github.event_name == 'pull_request' | |
| env: | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: | | |
| printf '%s\n' "${PR_TITLE}" > "${RUNNER_TEMP}/pr-title.txt" | |
| scripts/validate.sh commit-msg "${RUNNER_TEMP}/pr-title.txt" | |
| - name: Check release intent for package changes | |
| if: github.event_name == 'pull_request' | |
| env: | |
| BASE_SHA: ${{ github.event.pull_request.base.sha }} | |
| HEAD_BRANCH: ${{ github.event.pull_request.head.ref }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| PR_TITLE: ${{ github.event.pull_request.title }} | |
| run: ./.github/scripts/check-release-intent.sh "$PR_TITLE" "$BASE_SHA" "$HEAD_SHA" "$HEAD_BRANCH" | |
| - name: Check HEAD commit subject | |
| run: | | |
| git log -1 --pretty=%s > "${RUNNER_TEMP}/head-commit.txt" | |
| scripts/validate.sh commit-msg "${RUNNER_TEMP}/head-commit.txt" |