File tree 1 file changed +14
-16
lines changed 1 file changed +14
-16
lines changed Original file line number Diff line number Diff line change 1
1
# Apply a tag to HEAD at the beginning of each week.
2
2
# We can use this to create semver-looking tags for releases like
3
3
# 2020.44.123+abc1234
4
- # See https://blog.aspect.build/versioning-releases-from-a-monorepo
5
4
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'
10
8
jobs :
11
9
tagger :
12
10
runs-on : ubuntu-latest
13
11
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
You can’t perform that action at this time.
0 commit comments