Only create s390x build VMs when theyre needed #2432
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: Lint | |
on: [pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
# fetch all to allow linting of differences between branches | |
fetch-depth: 0 | |
- uses: actions/setup-python@v3 | |
- uses: mfinelli/setup-shfmt@v2 | |
- name: Install actionlint | |
run: | | |
# Install actionlint to ~/bin/, otherwise pre-commit won't be able to find the executable. | |
GOBIN="${HOME}/bin/" go install github.com/rhysd/actionlint/cmd/actionlint@latest | |
- uses: pre-commit/[email protected] | |
with: | |
# ensure we're only linting the diff between the PR and the base ref | |
extra_args: --from-ref origin/${{ github.event.pull_request.base.ref }} --to-ref HEAD |