release - fix https://github.com/jsdelivr/jsdelivr/issues/18610
Some checks are pending
Release / release (push) Waiting to run
Release / purge (push) Blocked by required conditions
Release / close-issues (push) Blocked by required conditions
Release / release-cleanup (push) Blocked by required conditions
Release / workflow-cleanup (push) Blocked by required conditions

This commit is contained in:
Gerd 2025-01-22 17:46:16 +01:00 committed by GitHub
parent 2c127db070
commit 56941e6ad6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,10 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Generate release tag
run: echo "release_tag=$(date +'%Y.%j').$((`date +%s` % 86400 ))" >> $GITHUB_ENV
run: |
repo_age=$(( $(date -u +"%Y") - $(curl -s -H "Accept: application/vnd.github+json" https://api.github.com/repos/${{ github.repository }} | jq -r .created_at | cut -c 1-4) ))
repo_version=$(date +'%Y.%j').$((`date +%s` % 86400 ))
echo "release_tag=$repo_age$repo_version" >> $GITHUB_ENV
- name: Generate issue list
run: echo "issue_list=$(gh issue list -l fixed-pending-release | cut -f1 | sed 's/^/#/' | sed 's/$/ /' | tr -d '\n\t\r')" >> $GITHUB_ENV
env: