Skip to content

Commit

Permalink
upp
Browse files Browse the repository at this point in the history
  • Loading branch information
syaiful-aa committed Jun 28, 2024
1 parent 2d247bf commit 729d112
Showing 1 changed file with 39 additions and 17 deletions.
56 changes: 39 additions & 17 deletions .github/workflows/exp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@ jobs:
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.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
Expand All @@ -34,4 +34,26 @@ jobs:
# 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 @- <<BODY
{
"tag":"v2.5.1",
"message":"initial version",
"object":"b0894005c70be201673dd17f699fa3a5d576241c",
"type":"commit",
"tagger":
{
"name": "GitHub Action",
"email": "[email protected]",
}
}
BODY

0 comments on commit 729d112

Please sign in to comment.