Skip to content

Commit

Permalink
use personal token checkout repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sword-jin committed Jul 17, 2024
1 parent e431a1e commit 31bb3e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/create_tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
version:
description: "New tag"
required: true
default: "v0.0.1(match the version in Cargo.toml)"

jobs:
create-tag:
Expand All @@ -15,10 +16,12 @@ jobs:
contents: write
env:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# use personal access token to create tag to it can trigger other workflows
GH_TOKEN: ${{ secrets.PAT_FOR_TAG }}
steps:
- uses: actions/checkout@v4
with:
# use personal access token to create tag to it can trigger other workflows
token: ${{ secrets.PAT_FOR_TAG }}
- name: Create tag
uses: actions/github-script@v5
with:
Expand Down

0 comments on commit 31bb3e3

Please sign in to comment.