Skip to content

Commit 15cc2c3

Browse files
chore: Update actions artifact versions (v3.x deprecated, using v4.x now) (#2601)
* Upload/artifacts uses v4.6.0 instead of deprecated v3.x * Update artifacts download
1 parent f6419bd commit 15cc2c3

6 files changed

Lines changed: 32 additions & 32 deletions

File tree

.github/actions/build-function/action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ description: 'Build a generic function usin yarn build and archiving the results
33

44
inputs:
55
app_name:
6-
description: "function folder"
6+
description: 'function folder'
77
required: true
88
artifact_name:
99
description: artifact name to upload
@@ -34,12 +34,12 @@ runs:
3434
working-directory: ${{ inputs.app_name }}
3535
shell: sh
3636
# env:
37-
# NODE_ENV: production
37+
# NODE_ENV: production
3838
# run: ${{ inputs.build_cmd }}
3939
run: yarn build
4040

41-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #@3.1.2
42-
with:
41+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #@4.6.0
42+
with:
4343
name: ${{ inputs.artifact_name || inputs.app_name }}
4444
path: ./${{ inputs.app_name }}/dist
45-
if-no-files-found: error
45+
if-no-files-found: error

.github/actions/deploy-gcs/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
steps:
2020
- name: download webpack
2121
id: download
22-
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # @v3.0.2
22+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # @v4.1.8
2323
with:
2424
name: ${{ inputs.artifact_name }}
2525
path: webpack

.github/actions/deploy-gfunction/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ runs:
9292
9393
- name: retrieve artifacts
9494
id: download
95-
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # @v3.0.2
95+
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # @v4.1.8
9696
with:
9797
name: ${{ inputs.artifact_name || inputs.app_name }}
9898
# This will work only if we're matching the same string as

.github/workflows/centrifuge-app.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
cat .env-config/.env.${{ steps.prepare.outputs.env_name }}
7373
yarn build:app --mode ${{ steps.prepare.outputs.env_name }}
7474
75-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #@3.1.2
75+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #@4.6.0
7676
with:
7777
name: ${{ env.artifact_name }}
7878
path: ./centrifuge-app/build

.github/workflows/fabric.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- name: Archive storybook artifacts
4040
# if: github.ref === 'refs/heads/main'
41-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # @v3.1.2
41+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # @v4.6.0
4242
with:
4343
name: fabric-storybook
4444
retention-days: 1

.github/workflows/prod-deploy.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Promote staging to PROD
22
on:
33
release:
44
types:
5-
- released
5+
- released
66
workflow_dispatch:
77
concurrency:
88
group: production-deployment
@@ -12,14 +12,14 @@ jobs:
1212
sync-staging-prod:
1313
permissions:
1414
contents: 'read'
15-
id-token: 'write'
15+
id-token: 'write'
1616
runs-on: ubuntu-latest
1717
environment: production
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
2121
with:
22-
path: apps
22+
path: apps
2323

2424
- name: prepare env logic
2525
id: prepare
@@ -36,23 +36,23 @@ jobs:
3636
service_account: '${{ secrets.GSA }}'
3737

3838
- name: 'Set up Cloud SDK'
39-
uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587 # @v1
39+
uses: google-github-actions/setup-gcloud@62d4898025f6041e16b1068643bfc5a696863587 # @v1
4040

4141
- name: Sync webpack from staging
4242
run: gsutil -m rsync -d -r gs://app.staging.centrifuge.io gs://${{ steps.prepare.outputs.front_url }}
43-
43+
4444
retrieve-prod-assets:
4545
runs-on: ubuntu-latest
46-
steps:
46+
steps:
4747
- name: Download artifact
4848
id: download-artifact
4949
uses: dawidd6/action-download-artifact@v2
5050
with:
5151
workflow: staging-deploy.yml
52-
workflow_conclusion: "" # This will fail if the staging deployment isn't finished yet
52+
workflow_conclusion: '' # This will fail if the staging deployment isn't finished yet
5353
# check_artifacts: true # This will search for the last available artifact, useful for testing
5454

55-
# Alternative: download from the release instead of
55+
# Alternative: download from the release instead of
5656
# workflow artifacts
5757
# - uses: dsaltares/fetch-gh-release-asset@master
5858
# with:
@@ -77,17 +77,17 @@ jobs:
7777
# echo "Workspace PATH: ${{ github.workspace }}"
7878
# ls -la $GITHUB_WORKSPACE
7979

80-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #@3.1.2
81-
with:
80+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #@4.6.0
81+
with:
8282
name: onboarding-api
8383
path: ${{ github.workspace }}/onboarding-api-staging/
84-
if-no-files-found: error
85-
86-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce #@3.1.2
87-
with:
84+
if-no-files-found: error
85+
86+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 #@4.6.0
87+
with:
8888
name: pinning-api
8989
path: ${{ github.workspace }}/pinning-api-staging/
90-
if-no-files-found: error
90+
if-no-files-found: error
9191

9292
pinning-prod-deploy:
9393
needs: retrieve-prod-assets
@@ -103,7 +103,7 @@ jobs:
103103
- name: Checkout
104104
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
105105
with:
106-
path: apps
106+
path: apps
107107

108108
- name: Deploy Gfunction
109109
id: functionsdeploy
@@ -114,7 +114,7 @@ jobs:
114114
GSA: ${{ secrets.GSA }}
115115
target: ${{ env.function_handler }}
116116
gcloud_region: ${{ vars.GCLOUD_REGION }}
117-
service_account: "${{ vars.PINNING_API_FUNCT_SA }}"
117+
service_account: '${{ vars.PINNING_API_FUNCT_SA }}'
118118
deploy_env: production
119119

120120
onboarding-prod-deploy:
@@ -131,7 +131,7 @@ jobs:
131131
- name: Checkout
132132
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
133133
with:
134-
path: apps
134+
path: apps
135135

136136
- name: Deploy Gfunction
137137
id: functionsdeploy
@@ -141,7 +141,7 @@ jobs:
141141
GWIP: ${{ secrets.GWIP }}
142142
GSA: ${{ secrets.GSA }}
143143
target: ${{ env.function_handler }}
144-
service_account: "${{ vars.ONBOARDING_FUNCT_SA }}"
144+
service_account: '${{ vars.ONBOARDING_FUNCT_SA }}'
145145
gcloud_region: ${{ vars.GCLOUD_REGION }}
146146
deploy_env: production
147147

@@ -156,7 +156,7 @@ jobs:
156156
SLACK_MESSAGE: |
157157
app.staging.centrifuge.io has been promoted to app.centrifuge.io and is now LIVE!
158158
Check out the new release -> https://github.com/centrifuge/apps/releases/
159-
SLACK_USERNAME: "Centrifuge GHA Bot"
160-
SLACK_ICON: "https://centrifuge.io/favicon.ico"
161-
SLACK_TITLE: "Centrifuge app has been promoted to prod."
162-
SLACK_FOOTER: "Automatic message from centrifuge/apps repository Actions"
159+
SLACK_USERNAME: 'Centrifuge GHA Bot'
160+
SLACK_ICON: 'https://centrifuge.io/favicon.ico'
161+
SLACK_TITLE: 'Centrifuge app has been promoted to prod.'
162+
SLACK_FOOTER: 'Automatic message from centrifuge/apps repository Actions'

0 commit comments

Comments
 (0)