Skip to content

Commit 08bb6e7

Browse files
committed
feat(release workflow): use date-base suffix to tag releases
1 parent 2fc28f8 commit 08bb6e7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
- name: Zip the contents
2828
id: zip
2929
run: |
30-
commit_hash=$(git rev-parse --short HEAD)
31-
echo "commit_hash=${commit_hash}" >> $GITHUB_OUTPUT
32-
zip_name="apache-iceberg-monitoring-${commit_hash}.zip"
30+
release_suffix=$(date -u +"%Y%m%d%H%M")
31+
echo "release_suffix=${release_suffix}" >> $GITHUB_OUTPUT
32+
zip_name="apache-iceberg-monitoring-${release_suffix}.zip"
3333
cd .aws-sam/build/IcebergMetricsLambda
3434
zip -r "../../../${zip_name}" .
3535
echo "zip_name=${zip_name}" >> $GITHUB_OUTPUT
@@ -58,8 +58,8 @@ jobs:
5858
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5959
run: |
6060
# Create the release
61-
gh release create "apache-iceberg-monitoring-${{ steps.zip.outputs.commit_hash }}" \
62-
--title "apache-iceberg-monitoring-${{ steps.zip.outputs.commit_hash }}" \
61+
gh release create "apache-iceberg-monitoring-${{ steps.zip.outputs.release_suffix }}" \
62+
--title "apache-iceberg-monitoring-${{ steps.zip.outputs.release_suffix }}" \
6363
--notes "${{ steps.changelog.outputs.changelog }}" \
6464
--target ${{ github.sha }} \
6565
./${{ steps.zip.outputs.zip_name }}

0 commit comments

Comments
 (0)