Skip to content

Commit faa9b7d

Browse files
authored
Chore: [AEA-0000] - do not use input in run block in actions (#407)
## Summary - Routine Change ### Details - do not use input in run block actions
1 parent 2668264 commit faa9b7d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/sam_release_code.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,15 @@ jobs:
151151
run: |
152152
cd gh-pages
153153
NOW=$(date +'%Y-%m-%dT%H:%M:%S')
154-
echo "tag,release_datetime" > _data/${{ inputs.TARGET_ENVIRONMENT }}_latest.csv
155-
echo "${{ inputs.VERSION_NUMBER }},${NOW}" >> _data/${{ inputs.TARGET_ENVIRONMENT }}_latest.csv
156-
echo "${{ inputs.VERSION_NUMBER }},${NOW}" >> _data/${{ inputs.TARGET_ENVIRONMENT }}_deployments.csv
154+
echo "tag,release_datetime" > "_data/${TARGET_ENVIRONMENT}_latest.csv"
155+
echo "${VERSION_NUMBER},${NOW}" >> "_data/${TARGET_ENVIRONMENT}_latest.csv"
156+
echo "${VERSION_NUMBER},${NOW}" >> "_data/${TARGET_ENVIRONMENT}_deployments.csv"
157157
git config user.name github-actions
158158
git config user.email github-actions@github.com
159-
git add _data/${{ inputs.TARGET_ENVIRONMENT }}_latest.csv
160-
git add _data/${{ inputs.TARGET_ENVIRONMENT }}_deployments.csv
161-
git commit -m 'update releases for ${{ inputs.TARGET_ENVIRONMENT }}'
159+
git add "_data/${TARGET_ENVIRONMENT}_latest.csv"
160+
git add "_data/${TARGET_ENVIRONMENT}_deployments.csv"
161+
git commit -m "update releases for ${TARGET_ENVIRONMENT}"
162162
parallel --retries 10 --delay 3 ::: "git pull --rebase && git push"
163+
env:
164+
VERSION_NUMBER: ${{ inputs.VERSION_NUMBER }}
165+
TARGET_ENVIRONMENT: ${{ inputs.TARGET_ENVIRONMENT }}

0 commit comments

Comments
 (0)