Skip to content

Commit

Permalink
fix: used PUBLIC_GITHUB_TOKEN instead of PAT
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelsimon committed Dec 21, 2023
1 parent eb81fba commit 0c79c8d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.WOOSMAP_GH_ACCESS_TOKEN }}
token: ${{ secrets.PUBLIC_GITHUB_TOKEN }}
- uses: actions/cache@v3
with:
path: ~/.npm
Expand Down Expand Up @@ -42,10 +42,10 @@ jobs:
"@semantic-release/git"
"@semantic-release/github"
env:
GH_TOKEN: ${{ secrets.WOOSMAP_GH_ACCESS_TOKEN }}
GH_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }}
NPM_TOKEN: skip
- name: Push samples to branches
run: |
bash ./sample-to-branch.sh
env:
GITHUB_TOKEN: ${{ secrets.WOOSMAP_GH_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PUBLIC_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/update-devdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Dispatch Release Event
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.WOOSMAP_GH_ACCESS_TOKEN }}
token: ${{ secrets.PUBLIC_GITHUB_TOKEN }}
repository: woosmap/developers.woosmap.com
event-type: update_js_samples
client-payload: '{"release_name": "${{ github.event.release.tag_name }}", "source_url": "${{ github.server_url }}/${{ github.repository }}/archive/refs/tags/${{ github.event.release.tag_name }}.tar.gz"}'

0 comments on commit 0c79c8d

Please sign in to comment.