diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 000000000..a8a3f0a06 --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,31 @@ +name: actionlint + +on: + push: + branches: + - main + paths: + - '.github/workflows/**' + pull_request: + paths: + - '.github/workflows/**' + workflow_dispatch: + +permissions: + contents: read + +jobs: + actionlint: + name: Lint workflow files + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + sparse-checkout: | + .github/workflows + + # Also runs shellcheck over every `run:` block and pyflakes over + # `shell: python` steps. + - uses: raven-actions/actionlint@3d39aea434753780c3b3d4a1a31c854b4dbf49d7 # v2.2.0 + with: + version: 1.7.12 diff --git a/.github/workflows/bump_toolchain_nightly-testing.yml b/.github/workflows/bump_toolchain_nightly-testing.yml index 7bab15c8f..894c16636 100644 --- a/.github/workflows/bump_toolchain_nightly-testing.yml +++ b/.github/workflows/bump_toolchain_nightly-testing.yml @@ -45,7 +45,7 @@ jobs: GH_TOKEN: ${{ steps.app-token.outputs.token }} run: | # Extract date from RELEASE_TAG (format: nightly-YYYY-MM-DD) - DATE_PART=$(echo "$RELEASE_TAG" | sed 's/nightly-//') + DATE_PART="${RELEASE_TAG#nightly-}" NIGHTLY_TESTING_TAG="nightly-testing-${DATE_PART}" echo "NIGHTLY_TESTING_TAG=$NIGHTLY_TESTING_TAG" >> "${GITHUB_ENV}"