Skip to content

Commit 2e92ee7

Browse files
committed
Update all GitHub Actions. Add newly required CODECOV_TOKEN to codecov action
1 parent 330925f commit 2e92ee7

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
id: yarn-cache-dir-path
7575
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
7676
- name: Cache Yarn dependencies
77-
uses: actions/cache@v3
77+
uses: actions/cache@v4
7878
with:
7979
# Cache entire Yarn cache directory (see previous step)
8080
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
@@ -101,7 +101,7 @@ jobs:
101101
# so that it can be shared with the 'codecov' job (see below)
102102
# NOTE: Angular CLI only supports code coverage for specs. See https://github.com/angular/angular-cli/issues/6286
103103
- name: Upload code coverage report to Artifact
104-
uses: actions/upload-artifact@v3
104+
uses: actions/upload-artifact@v4
105105
if: matrix.node-version == '18.x'
106106
with:
107107
name: dspace-angular coverage report
@@ -135,7 +135,7 @@ jobs:
135135
# Cypress always creates a video of all e2e tests (whether they succeeded or failed)
136136
# Save those in an Artifact
137137
- name: Upload e2e test videos to Artifacts
138-
uses: actions/upload-artifact@v3
138+
uses: actions/upload-artifact@v4
139139
if: always()
140140
with:
141141
name: e2e-test-videos
@@ -144,7 +144,7 @@ jobs:
144144
# If e2e tests fail, Cypress creates a screenshot of what happened
145145
# Save those in an Artifact
146146
- name: Upload e2e test failure screenshots to Artifacts
147-
uses: actions/upload-artifact@v3
147+
uses: actions/upload-artifact@v4
148148
if: failure()
149149
with:
150150
name: e2e-test-screenshots
@@ -197,7 +197,7 @@ jobs:
197197

198198
# Download artifacts from previous 'tests' job
199199
- name: Download coverage artifacts
200-
uses: actions/download-artifact@v3
200+
uses: actions/download-artifact@v4
201201

202202
# Now attempt upload to Codecov using its action.
203203
# NOTE: We use a retry action to retry the Codecov upload if it fails the first time.
@@ -207,11 +207,12 @@ jobs:
207207
- name: Upload coverage to Codecov.io
208208
uses: Wandalen/wretry.action@v1.3.0
209209
with:
210-
action: codecov/codecov-action@v3
210+
action: codecov/codecov-action@v4
211211
# Ensure codecov-action throws an error when it fails to upload
212212
# This allows us to auto-restart the action if an error is thrown
213213
with: |
214214
fail_ci_if_error: true
215+
token: ${{ secrets.CODECOV_TOKEN }}
215216
# Try re-running action 5 times max
216217
attempt_limit: 5
217218
# Run again in 30 seconds

.github/workflows/issue_opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
# Only add to project board if issue is flagged as "needs triage" or has no labels
1717
# NOTE: By default we flag new issues as "needs triage" in our issue template
1818
if: (contains(github.event.issue.labels.*.name, 'needs triage') || join(github.event.issue.labels.*.name) == '')
19-
uses: actions/add-to-project@v0.5.0
19+
uses: actions/add-to-project@v1.0.0
2020
# Note, the authentication token below is an ORG level Secret.
2121
# It must be created/recreated manually via a personal access token with admin:org, project, public_repo permissions
2222
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token#permissions-for-the-github_token

.github/workflows/pull_request_opened.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,4 @@ jobs:
2121
# Assign the PR to whomever created it. This is useful for visualizing assignments on project boards
2222
# See https://github.com/toshimaru/auto-author-assign
2323
- name: Assign PR to creator
24-
uses: toshimaru/auto-author-assign@v2.0.1
24+
uses: toshimaru/auto-author-assign@v2.1.0

0 commit comments

Comments
 (0)