Skip to content

Commit

Permalink
force the crucible-release workflow to generate tags using UTC timezo…
Browse files Browse the repository at this point in the history
…ne instead of whatever is set on the runner

- The workflow is scheduled to run based on UTC so the resulting tag
  is expected to match that.  In other words, if it runs at midnight
  on 2024-10-01 UTC but the local clock is in US CDT we want the date
  command to return month=10 and day=01 instead of month=09 and day=30
  since the local clock is hours behind UTC.
  • Loading branch information
k-rister committed Oct 1, 2024
1 parent 9b0357c commit 8e7e49f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/crucible-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ jobs:
id: gen-release-tag
run: |
if [ "${{ inputs.custom_tag }}" == "" ]; then
year="$(date +%Y)"
month="$(date +%m)"
year="$(date -u +%Y)"
month="$(date -u +%m)"
month=${month#0}
quarter="$(((month-1)/3+1))"
echo "tag=$year.$quarter" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 8e7e49f

Please sign in to comment.