Skip to content

Commit 021a054

Browse files
authored
Update weekly_tag.yaml (#395)
1 parent 8743b8e commit 021a054

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

.github/workflows/weekly_tag.yaml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
11
# Apply a tag to HEAD at the beginning of each week.
22
# We can use this to create semver-looking tags for releases like
33
# 2020.44.123+abc1234
4-
# See https://blog.aspect.build/versioning-releases-from-a-monorepo
54
on:
6-
schedule:
7-
# Mondays at 5am UTC / midnight EST
8-
- cron: '0 5 * * 1'
9-
5+
schedule:
6+
# Mondays at 5am UTC / midnight EST
7+
- cron: '0 5 * * 1'
108
jobs:
119
tagger:
1210
runs-on: ubuntu-latest
1311
steps:
14-
- name: tag HEAD with [year].[week number]
15-
run: |
16-
curl --request POST \
17-
--url https://api.github.com/repos/{{ "${{ github.repository }}" }}/git/refs \
18-
--header 'authorization: Bearer {{ "${{ secrets.GITHUB_TOKEN }}" }}' \
19-
--data @- << EOF
20-
{
21-
"ref": "refs/tags/$(date +%Y.%V)",
22-
"sha": "{{ "${{ github.sha }}" }}"
23-
}
24-
EOF
12+
- name: tag HEAD with date +%Y.%V
13+
run: |
14+
curl --request POST \
15+
--url https://api.github.com/repos/${{ github.repository }}/git/refs \
16+
--header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \
17+
--data @- << EOF
18+
{
19+
"ref": "refs/tags/$(date +%Y.%V)",
20+
"sha": "${{ github.sha }}"
21+
}
22+
EOF

0 commit comments

Comments
 (0)