From b5bccd2da7a1e9226a8454af9e6817bda57ac2a7 Mon Sep 17 00:00:00 2001 From: Tyson Cung Date: Wed, 10 Sep 2025 11:16:15 +0800 Subject: [PATCH] Modernize GitHub Actions workflows - Update actions/checkout from v1 to v4 across all workflows - Fix Python syntax error in simple.yml workflow - These updates address deprecated action versions to ensure workflows continue working --- .github/workflows/actions.yml | 2 +- .github/workflows/container.yml | 2 +- .github/workflows/env.yml | 2 +- .github/workflows/simple.yml | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 9ea43f5..d834eec 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -39,7 +39,7 @@ jobs: # git clone git@github:$GITHUB_REPOSITORY # git checkout $GITHUB_SHA - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: List Files After Checkout run: | pwd diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 0965024..5113bc7 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -19,7 +19,7 @@ jobs: with: entrypoint: /usr/local/bin/node args: -v - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Run a script uses: docker://node:12.14.1-alpine3.10 with: diff --git a/.github/workflows/env.yml b/.github/workflows/env.yml index 384343a..423d9f1 100644 --- a/.github/workflows/env.yml +++ b/.github/workflows/env.yml @@ -7,7 +7,7 @@ jobs: decrypt: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 - name: Decrypt run: gpg --quiet --batch --yes --decrypt --passphrase="$PASSPHRASE" --output $HOME/secret.json secret.json.gpg env: diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index 6ecfe18..8ba1fd2 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -16,8 +16,7 @@ jobs: - name: python Command run: | import platform - print - (platform.processor()) + print(platform.processor()) shell: python run-windwos-commands: runs-on: windows-latest