-
-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): git safe directory for update (#1081)
* fix(ci): git safe directory for update Signed-off-by: madomado <[email protected]> * nightly too Signed-off-by: madomado <[email protected]> --------- Signed-off-by: madomado <[email protected]>
- Loading branch information
Showing
2 changed files
with
4 additions
and
4 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 |
---|---|---|
|
@@ -17,11 +17,12 @@ jobs: | |
fetch-depth: 0 | ||
ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }} | ||
|
||
- name: Install SSH signing key | ||
- name: Install SSH signing key & Set up git repository | ||
run: | | ||
mkdir -p ${{ runner.temp }} | ||
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key | ||
chmod 0700 ${{ runner.temp }}/signing_key | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Run Nightly Update | ||
run: anda update -vv --filters nightly=1 | ||
|
@@ -30,7 +31,6 @@ jobs: | |
|
||
- name: Save | ||
run: | | ||
git config --global --add safe.directory "*" | ||
if [[ `git status --porcelain` ]]; then | ||
git config user.name "Raboneko" | ||
git config user.email "[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 |
---|---|---|
|
@@ -17,11 +17,12 @@ jobs: | |
fetch-depth: 0 | ||
ssh-key: ${{ secrets.SSH_AUTHENTICATION_KEY }} | ||
|
||
- name: Install SSH signing key | ||
- name: Install SSH signing key & Set up git repository | ||
run: | | ||
mkdir -p ${{ runner.temp }} | ||
echo "${{ secrets.SSH_SIGNING_KEY }}" > ${{ runner.temp }}/signing_key | ||
chmod 0700 ${{ runner.temp }}/signing_key | ||
git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
- name: Run Update | ||
run: anda update -vv | ||
|
@@ -31,7 +32,6 @@ jobs: | |
|
||
- name: Save | ||
run: | | ||
git config --global --add safe.directory "*" | ||
if [[ `git status --porcelain` ]]; then | ||
git config user.name "Raboneko" | ||
git config user.email "[email protected]" | ||
|