-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.65 KB
/
exp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: exp
on: push
jobs:
fire:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# - name: Create tag
# uses: actions/github-script@v6
# with:
# script: |
# github.rest.git.createTag({
# owner: 'syaiful-aa',
# repo: 'quick_math',
# tag: 'v2.5.0',
# message: 'exp',
# object: context.sha,
# type: 'commit',
# tagger: {
# name: 'GitHub Action',
# email: '[email protected]'
# }
# })
# - name: Create Tag
# uses: actions/github-script@v6
# with:
# script: |
# github.rest.git.createRef({
# owner: context.repo.owner,
# repo: context.repo.repo,
# ref: 'refs/tags/v2.5.0',
# sha: context.sha
# })
- name: Create Tag
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/syaiful-aa/quick_math/git/tags \
-d @- << 'EOF'
{
"tag": "v2.5.1",
"message": "initial version",
"object": "b0894005c70be201673dd17f699fa3a5d576241c",
"type": "commit",
"tagger":
{
"name": "GitHub Action",
"email": "[email protected]",
"date": "$(date --utc +%Y-%m-%dT%H:%M:%SZ)"
}
}
EOF