-
-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github Actions: Fix permission issues
- Loading branch information
Showing
3 changed files
with
2 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,6 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- uses: pnpm/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
token: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }} | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
|
@@ -34,6 +35,5 @@ jobs: | |
publish: pnpm run release | ||
version: pnpm run version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
UPDATE_TEMPLATE_SSH_KEY: ${{ secrets.UPDATE_TEMPLATE_SSH_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,6 @@ get_abs_filename() { | |
DIR=$(get_abs_filename $(dirname "$0")) | ||
TMP=$(get_abs_filename "$DIR/../node_modules/.tmp") | ||
|
||
if [ "$CI" ]; then | ||
(umask 0077; echo "$UPDATE_TEMPLATE_SSH_KEY" > ~/ssh_key;) | ||
export GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=accept-new -i ~/ssh_key' | ||
fi | ||
|
||
mkdir -p $TMP | ||
cd $TMP | ||
|
||
|
@@ -25,11 +20,6 @@ git clone --depth 1 --single-branch --branch main https://github.com/fuma-nama/n | |
cd next-docs-ui-template | ||
node $DIR/update-git-repo.js $TMP/next-docs-ui-template | ||
|
||
if [ "$CI" ]; then | ||
git config user.email '[email protected]' | ||
git config user.name '[bot]' | ||
fi | ||
|
||
# commit the new files | ||
git add -A | ||
git commit -m "version $npm_package_version" | ||
|