Skip to content

Commit

Permalink
fix(ci): fix build metadata step
Browse files Browse the repository at this point in the history
- Date was printing seconds since epoc instead of seconds in current minute.
- `GITHUB_OUTPUT` file path was being printed instead of content.
  • Loading branch information
MattSturgeon committed Mar 27, 2024
1 parent cdc3f41 commit b74ccad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# Calculate
full="${{ github.sha }}"
short="${full:0:6}"
date="$(date --utc +'%Y-%m-%d_%H-%M-%s')"
date="$(date --utc +'%Y-%m-%d_%H-%M-%S')"
# Print to output
echo "full=$full" >> $GITHUB_OUTPUT
Expand All @@ -28,7 +28,7 @@ jobs:
# Print to stdout too
echo Metadata:
echo $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit b74ccad

Please sign in to comment.