From 81701948168039d2267e89b97e50f82e6f6ad8f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Wed, 14 Jun 2023 11:26:43 +0200 Subject: [PATCH] Update all Github actions --- .github/workflows/add-a11y-checklist.yaml | 6 +++--- .github/workflows/check-links-validity.yaml | 2 +- .github/workflows/deploy.yaml | 4 ++-- .github/workflows/publish.yaml | 2 +- .github/workflows/test-external-integrations.yaml | 6 +++--- .github/workflows/zammad-bot.yaml | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/add-a11y-checklist.yaml b/.github/workflows/add-a11y-checklist.yaml index cbf2eb52b..ecf2516ba 100644 --- a/.github/workflows/add-a11y-checklist.yaml +++ b/.github/workflows/add-a11y-checklist.yaml @@ -12,13 +12,13 @@ jobs: fetch-depth: 0 - name: Get changed files in the site folder id: changed-files-specific - uses: tj-actions/changed-files@v35 + uses: tj-actions/changed-files@v36 with: files: | site/** - name: Find Comment if: steps.changed-files-specific.outputs.any_changed == 'true' - uses: peter-evans/find-comment@v1 + uses: peter-evans/find-comment@v2 id: find-comment with: issue-number: ${{ github.event.pull_request.number }} #e.g. 1 @@ -26,7 +26,7 @@ jobs: body-includes: accessibilité - name: Create comment if: steps.changed-files-specific.outputs.any_changed == 'true' && steps.find-comment.outputs.comment-id == '' - uses: peter-evans/create-or-update-comment@v1 + uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.pull_request.number }} comment-id: ${{ steps.find-comment.outputs.comment-id }} diff --git a/.github/workflows/check-links-validity.yaml b/.github/workflows/check-links-validity.yaml index b80c710fb..7cd7017b0 100644 --- a/.github/workflows/check-links-validity.yaml +++ b/.github/workflows/check-links-validity.yaml @@ -7,7 +7,7 @@ jobs: run: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - uses: ./.github/actions/install - name: Install RipGrep run: sudo apt install -y ripgrep diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4d136fd73..187506b54 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -280,7 +280,7 @@ jobs: uses: actions/checkout@v3 - uses: ./.github/actions/install - name: Test e2e mon-entreprise on preview (site=${{ matrix.site }}, browser=${{ matrix.browser}}, viewport=${{ matrix.viewport }}) - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 with: # Hack to use local node version, issue : https://github.com/cypress-io/github-action/issues/489#issuecomment-1021379037 command-prefix: '--' @@ -350,7 +350,7 @@ jobs: uses: actions/checkout@v3 - uses: ./.github/actions/install - name: Test e2e mon-entreprise on production (site=${{ matrix.site }}, browser=${{ matrix.browser}}, viewport=${{ matrix.viewport }}) - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 with: install: false working-directory: site diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4abf00ea8..21c669adb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -17,7 +17,7 @@ jobs: - run: yarn workspace ${{ matrix.package }} run build env: NODE_ENV: production - - uses: JS-DevTools/npm-publish@v1 + - uses: JS-DevTools/npm-publish@v2 with: token: ${{ secrets.NPM_PUBLISH_SECRET }} dry-run: ${{ github.ref != 'refs/heads/master' }} diff --git a/.github/workflows/test-external-integrations.yaml b/.github/workflows/test-external-integrations.yaml index c57bc0840..0d08793c6 100644 --- a/.github/workflows/test-external-integrations.yaml +++ b/.github/workflows/test-external-integrations.yaml @@ -13,7 +13,7 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - uses: actions/cache@v2 + - uses: actions/cache@v3 # Custom cache as we do not care about installing all the other dependancies with: path: | @@ -24,7 +24,7 @@ jobs: - uses: ./.github/actions/install - name: Test external integration - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 with: install: false working-directory: site @@ -33,7 +33,7 @@ jobs: config: specPattern=cypress/integration/external/**/*.{js,jsx,ts,tsx},baseUrl=https://mon-entreprise.urssaf.fr - name: e2e tests with external API calls - uses: cypress-io/github-action@v4 + uses: cypress-io/github-action@v5 with: install: false working-directory: site diff --git a/.github/workflows/zammad-bot.yaml b/.github/workflows/zammad-bot.yaml index 68a0992bb..9618a7eea 100644 --- a/.github/workflows/zammad-bot.yaml +++ b/.github/workflows/zammad-bot.yaml @@ -12,7 +12,7 @@ jobs: # Note: we could detect if the comment was already posted in the issue to # avoid posting it multiple times in case the issue was re-opened and # re-closed. https://github.com/peter-evans/create-or-update-comment - - uses: peter-evans/create-or-update-comment@v1 + - uses: peter-evans/create-or-update-comment@v3 with: issue-number: ${{ github.event.issue.number }} body: |