Skip to content

Commit

Permalink
ci: Update PAT name
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Ardecky committed Aug 28, 2020
1 parent e3744d7 commit 8a9a94c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create-version-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Create Branch for tag
uses: peterjgrainger/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ZINGSOFT_REPOS_PERSONAL_ACCESS_TOKEN }}
with:
branch: 'canary/${{ github.event.client_payload.version }}'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/notify-services-of-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: peter-evans/repository-dispatch@v1
with:
# personal access tokens are under [email protected] github account
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
token: ${{ secrets.ZINGSOFT_REPOS_PERSONAL_ACCESS_TOKEN }}
repository: zingsoftinc/zingchart-com
event-type: new-zg-version
client-payload: '{"ref": "${{ github.ref }}", "version": "${GITHUB_REF/refs\/tags\//}"}'
Expand All @@ -31,7 +31,7 @@ jobs:
# uses: peter-evans/repository-dispatch@v1
# with:
# # personal access tokens are under [email protected] github account
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
# token: ${{ secrets.ZINGSOFT_REPOS_PERSONAL_ACCESS_TOKEN }}
# repository: zingsoftinc/zingchart-cdn
# event-type: new-zg-version
# client-payload: '{"ref": "${{ github.ref }}", "version": "${GITHUB_REF/refs\/tags\//}"}'
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "ZingSoft Admin"
npm version ${ZC_VERSION}
git push https://zingsoftadmin:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/zingchart/zingchart.git HEAD:master --force
git push https://zingsoftadmin:${{ secrets.ZINGSOFT_REPOS_PERSONAL_ACCESS_TOKEN }}@github.com/zingchart/zingchart.git HEAD:master --force
- name: Update Package.json Version Canary
if: github.event.release.prerelease == true
# https://docs.github.com/en/developers/webhooks-and-events/webhook-events-and-payloads#create
Expand All @@ -54,7 +54,7 @@ jobs:
git config --local user.email "[email protected]"
git config --local user.name "ZingSoft Admin"
npm version ${ZC_VERSION}
git push https://zingsoftadmin:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/zingchart/zingchart.git
git push https://zingsoftadmin:${{ secrets.ZINGSOFT_REPOS_PERSONAL_ACCESS_TOKEN }}@github.com/zingchart/zingchart.git
- name: Publish Canary TagTo NPM
if: github.event.release.prerelease == true
run: npm publish --tag canary --access public
Expand Down

0 comments on commit 8a9a94c

Please sign in to comment.