Archived
feat(auto-release): use unique timestamp-based tag pattern
Replace the YYYY-MM date format with a YYYYMMDDHHmmSS.run_id pattern to guarantee unique tags and prevent conflicts when the cron schedule triggers multiple times within the same month. Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -4,6 +4,7 @@ on:
|
||||
schedule:
|
||||
# Second Sunday of every month at 00:00 UTC
|
||||
- cron: "0 0 8-14 * 0"
|
||||
workflow_dispatch: {}
|
||||
|
||||
env:
|
||||
GIT_EMAIL: noreply@cryptic.systems
|
||||
@@ -24,7 +25,7 @@ jobs:
|
||||
- name: Create and push new tag
|
||||
id: create_tag
|
||||
run: |
|
||||
defined_tag="$(date -u +"%Y-%m")"
|
||||
defined_tag="$(date -u +"%Y%m%d%H%M%S").${{ github.run_id }}"
|
||||
|
||||
echo "defined_tag=${defined_tag}" >> $GITHUB_OUTPUT
|
||||
echo "New tag: ${defined_tag}"
|
||||
|
||||
Reference in New Issue
Block a user