Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure workspace as a safe directory #73

Merged
merged 1 commit into from
Apr 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions publish-pr-preview/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ jobs:
name: Job Name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Publish PR Preview
uses: thefrontside/actions/publish-pr-preview@master
uses: thefrontside/actions/publish-pr-preview@v1
with:
BEFORE_ALL: npm run prepack-after-install
NPM_PUBLISH: npm run my-script
Expand Down
1 change: 1 addition & 0 deletions publish-pr-preview/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ function package_json_finder(){
done;
}

git config --global --add safe.directory /github/workspace
git checkout $GITHUB_BASE_REF
git checkout $GITHUB_HEAD_REF

Expand Down
4 changes: 2 additions & 2 deletions synchronize-npm-tags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
name: Job Name
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: thefrontside/actions/synchronize-npm-tags@master
- uses: actions/checkout@v3
- uses: thefrontside/actions/synchronize-npm-tags@v1
with:
preserve: dev beta alpha
env:
Expand Down
6 changes: 4 additions & 2 deletions synchronize-with-npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ jobs:
name: Job Name
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Syncrhonize with NPM
uses: thefrontside/actions/synchronize-with-npm@master
uses: thefrontside/actions/synchronize-with-npm@v1
with:
BEFORE_ALL: npm run prepack-after-install
NPM_PUBLISH: npm run my-script
Expand Down
1 change: 1 addition & 0 deletions synchronize-with-npm/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ BLUE='\033[1;34m'
NC='\033[0m'

function git_setup(){
git config --global --add safe.directory /github/workspace
git remote set-url origin https://x-oauth-basic:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
git fetch origin +refs/heads/*:refs/heads/*

Expand Down