File tree 3 files changed +13
-3
lines changed
3 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,13 @@ jobs:
188
188
steps :
189
189
- uses : actions/checkout@v2
190
190
191
+ # NOTES@jsjoeio - trying out
192
+ - uses : actions/download-artifact@v2
193
+ id : download
194
+ with :
195
+ name : " npm-package"
196
+ path : tmp-npm-package-dir
197
+
191
198
- name :
192
199
Set NPM_ENVIRONMENT
193
200
# The way this logic works is it checks if the GitHub event is a push to the `main` branch
Original file line number Diff line number Diff line change @@ -130,8 +130,7 @@ download_artifact() {
130
130
local artifacts_url
131
131
artifacts_url=" $( get_artifact_url " $artifact_name " " $environment " " $branch " ) "
132
132
133
- echo " Inside download_artifact"
134
- echo " Using the following values:"
133
+ echo " Using the following values to download artifact:"
135
134
echo " -artifact_name: $artifact_name "
136
135
echo " -dst: $dst "
137
136
echo " -environment: $environment "
Original file line number Diff line number Diff line change @@ -76,7 +76,11 @@ main() {
76
76
# Source:https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables
77
77
BRANCH=" ${GITHUB_HEAD_REF-main} "
78
78
echo " Calling download_artifact with npm env: $NPM_ENVIRONMENT and branch: $BRANCH "
79
- download_artifact npm-package ./release-npm-package " $NPM_ENVIRONMENT " " $BRANCH "
79
+ # download_artifact npm-package ./release-npm-package "$NPM_ENVIRONMENT" "$BRANCH"
80
+ # NOTES@jsjoeio testing an approach where we run this script after downloading the artifact
81
+ # in a job in the workflow file itself
82
+ unzip -q -o " tmp-npm-package-dir" -d " ./release-npm-package"
83
+
80
84
# https://github.com/actions/upload-artifact/issues/38
81
85
tar -xzf release-npm-package/package.tar.gz
82
86
You can’t perform that action at this time.
0 commit comments