Pin conda to 23.7.3 last working version #7000
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 GitHub Actions | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint-actions: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.16.0' | |
# Lifted from https://github.com/pytorch/pytorch/blob/b39b28ced39f6400c97c1ab663046d765fc95a87/.github/workflows/lint.yml#L189-L200 | |
- name: Install ShellCheck | |
run: | | |
set -x | |
scversion="v0.7.2" | |
wget -qO- "https://github.com/koalaman/shellcheck/releases/download/${scversion?}/shellcheck-${scversion?}.linux.x86_64.tar.xz" | tar -xJv | |
mkdir -p ~/.local/bin | |
cp "shellcheck-${scversion}/shellcheck" ~/.local/bin/ | |
rm -r "shellcheck-${scversion}" | |
~/.local/bin/shellcheck --version | |
- name: Install requirements | |
run: | | |
set -eux | |
go install github.com/rhysd/actionlint/cmd/actionlint@97ad72abf96ba516f4a49f2da567165eaebf7e5a | |
- name: Run actionlint | |
run: | | |
set -eux | |
# Would like to eventually have this in a config file but it's here until then | |
actionlint \ | |
-ignore "SC1090" \ | |
-ignore 'when a reusable workflow is called with "uses", "strategy" is not available.' \ | |
-ignore 'reusable workflow cannot be nested.' |