Skip to content

Commit

Permalink
update primary key to be set by COMMIT_NAME in 1Mon runs to avoid iss…
Browse files Browse the repository at this point in the history
…ues with multiple tags on a single commit
  • Loading branch information
laestrada committed Sep 27, 2022
1 parent 383e086 commit 10cce56
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/cloud-benchmarking-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ jobs:
AWS_DEFAULT_OUTPUT: json
run: |
cd ${{ github.workspace }}
echo "DEV_PRIMARY_KEY=gchp-c${RESOLUTION}-${TIME_PERIOD}-`git describe --tags`" >> $GITHUB_ENV
if [[ "x${TIME_PERIOD}" == "x1Mon" ]]; then
echo "DEV_PRIMARY_KEY=gchp-c${RESOLUTION}-${TIME_PERIOD}-${COMMIT_NAME}" >> $GITHUB_ENV
else
echo "DEV_PRIMARY_KEY=gchp-c${RESOLUTION}-${TIME_PERIOD}-`git describe --tags`" >> $GITHUB_ENV
fi
echo "REF_PRIMARY_KEY=`./.github/workflows/findRefKey.sh ${RESOLUTION} ${TIME_PERIOD} ${GITHUB_SHA}`" >> $GITHUB_ENV
- name: Trigger Step Function
env:
Expand Down

0 comments on commit 10cce56

Please sign in to comment.