File tree Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Expand file tree Collapse file tree 1 file changed +25
-5
lines changed Original file line number Diff line number Diff line change 9
9
build :
10
10
runs-on : ubuntu-latest
11
11
12
+ # Needed for creating tag
13
+ permissions :
14
+ contents : write
15
+
12
16
steps :
13
17
- name : Checkout code
14
18
uses : actions/checkout@v3
@@ -25,13 +29,29 @@ jobs:
25
29
- name : Set current date as env variable
26
30
run : echo "DATETIME=$(date +'%Y-%m-%dT%H-%M-%S')" >> $GITHUB_ENV
27
31
32
+ # - name: Bump version and push tag
33
+ # id: tag_version
34
+ # uses: mathieudutour/github-tag-action@v6.2
35
+ # with:
36
+ # custom_tag: v${{ env.DATETIME }}
37
+ # tag_prefix: ""
38
+ # github_token: ${{ secrets.GITHUB_TOKEN }}
39
+ # run:
40
+ # git config --global user.name "${GITHUB_ACTOR}"
41
+ # git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com"
42
+ # git tag "v${{ env.DATETIME }}"
43
+ # git push origin "v${{ env.DATETIME }}"
44
+
28
45
- name : Bump version and push tag
29
- id : tag_version
30
- uses : mathieudutour/github-tag-action@v6.2
46
+ uses : actions/github-script@v7
31
47
with :
32
- custom_tag : v${{ env.DATETIME }}
33
- tag_prefix : " "
34
- github_token : ${{ secrets.GITHUB_TOKEN }}
48
+ script : |
49
+ github.rest.git.createRef({
50
+ owner: context.repo.owner,
51
+ repo: context.repo.repo,
52
+ ref: "refs/tags/v${{ env.DATETIME }}",
53
+ sha: context.sha
54
+ })
35
55
36
56
- name : Build notebooks
37
57
run : |
You can’t perform that action at this time.
0 commit comments