From f32e1f59ace020dbc82ffe3b01a0b09bc542aa36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=BA=E6=B0=91=E7=9A=84=E5=8B=A4=E5=8A=A1=E5=91=98?= Date: Tue, 24 Dec 2024 00:17:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=20=20=E6=B7=BB=E5=8A=A0`actionlint`,?= =?UTF-8?q?=E9=AA=8C=E8=AF=81`workflows/*`=E4=B8=8B=E7=9A=84`*.yml`?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=98=AF=E5=90=A6=E7=AC=A6=E5=90=88=E8=A7=84?= =?UTF-8?q?=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/actionlint.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/actionlint.yml diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 000000000..8bb3fdc6a --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,25 @@ +# Copied from https://github.com/rhysd/actionlint/blob/048c97d90b98b832450d3adf00fc7757b0ed9953/docs/usage.md#use-actionlint-on-github-actions +name: actionlint + +on: + push: + paths: + - .github/workflows/*.yml + pull_request: + paths: + - .github/workflows/*.yml + +jobs: + actionlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + persist-credentials: false # Disable git write access + - name: Download actionlint + id: get_actionlint + run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash) + shell: bash + - name: Check workflow files + run: ${{ steps.get_actionlint.outputs.executable }} -color + shell: bash