diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 17b5f1026..c1a9ff8f2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,9 +19,8 @@ jobs: uses: actions/checkout@v4 - name: Generate release tag 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 + repo_version=$(printf '%o' "$(date -u +"%Y")")$(date +'%Y.%-j').$((`date +%s` % 86400 )) + echo "release_tag=$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: