From d3138eb8e28e7f560ed394221580be46c21280a8 Mon Sep 17 00:00:00 2001 From: Gustavo Bissolli Date: Fri, 23 Feb 2024 11:14:59 +0400 Subject: [PATCH] refactor: update deps to use v4 and node 20 --- .github/workflows/test-with-name.yml | 14 +++++++------- .github/workflows/test.yml | 14 +++++++------- README.md | 28 ++++++++++++++-------------- action.yml | 4 ++-- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/test-with-name.yml b/.github/workflows/test-with-name.yml index 1925242..d2320bc 100644 --- a/.github/workflows/test-with-name.yml +++ b/.github/workflows/test-with-name.yml @@ -7,11 +7,11 @@ jobs: init: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - name: First step run: echo "Init is ready" - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: persist artifactName: my-art @@ -20,8 +20,8 @@ jobs: needs: [init] runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v3 - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: actions/setup-node@v4 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: retrieve artifactName: my-art @@ -32,8 +32,8 @@ jobs: needs: [init] runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v3 - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: actions/setup-node@v4 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: retrieve artifactName: my-art diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a5beb78..7b0ca24 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,11 +7,11 @@ jobs: init: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - name: First step run: echo "Init is ready" - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: persist @@ -19,8 +19,8 @@ jobs: needs: [init] runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v3 - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: actions/setup-node@v4 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: retrieve - name: Step A @@ -30,8 +30,8 @@ jobs: needs: [init] runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v3 - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: actions/setup-node@v4 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: retrieve - name: Step B diff --git a/README.md b/README.md index 8262150..372f396 100644 --- a/README.md +++ b/README.md @@ -19,11 +19,11 @@ jobs: init: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - name: Install dependencies run: npm install - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: persist ``` @@ -40,11 +40,11 @@ jobs: init: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - name: Install dependencies run: npm install - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: persist @@ -52,7 +52,7 @@ jobs: needs: [init] runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v3 + - uses: actions/setup-node@v4 - uses: chatfood/gh-action-persist-workspace@master with: action: retrieve @@ -73,11 +73,11 @@ jobs: init: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 - name: Install dependencies run: npm install - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: persist @@ -85,8 +85,8 @@ jobs: needs: [init] runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v3 - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: actions/setup-node@v4 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: retrieve - name: Run unit tests @@ -96,8 +96,8 @@ jobs: needs: [init] runs-on: ubuntu-latest steps: - - uses: actions/setup-node@v3 - - uses: bissolli/gh-action-persist-workspace@v1 + - uses: actions/setup-node@v4 + - uses: bissolli/gh-action-persist-workspace@v2 with: action: retrieve - name: Build the project diff --git a/action.yml b/action.yml index 87dbfe8..ff61459 100644 --- a/action.yml +++ b/action.yml @@ -23,14 +23,14 @@ runs: run: tar -cf workspace.tar --exclude=workspace.tar . - name: Upload the workspace artifact if: ${{ inputs.action == 'persist' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ inputs.artifactName || 'persisted-artifact' }} path: workspace.tar if-no-files-found: error - name: Retrieve workspace if: ${{ inputs.action == 'retrieve' }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{ inputs.artifactName || 'persisted-artifact' }} - name: Extract workspace