-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit updated instances data to the PR branch if triggered by a PR
- Loading branch information
1 parent
1ac436e
commit 63755b9
Showing
1 changed file
with
15 additions
and
3 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 |
---|---|---|
|
@@ -26,11 +26,23 @@ jobs: | |
cd piu && yarn && yarn run update && cd .. | ||
cp piu/instances.toml morg/content/public-instances/instances.toml | ||
- name: Commit and push data | ||
- name: Commit and push data (within PR) | ||
if: ${{ github.event_name == 'pull_request' }} | ||
run: | | ||
cd morg | ||
git config --global user.name "GitHub CI" | ||
git config --global user.email "[email protected]" | ||
git add ecosystem/public-instances/instances.toml | ||
git switch ${ github.ref_name } | ||
git add public-instances/instances.toml | ||
git commit -m "Update instances.toml" | ||
git push | ||
working-directory: morg | ||
|
||
- name: Commit and push data (scheduled) | ||
if: ${{ github.event_name == 'schedule' }} | ||
run: | | ||
git config --global user.name "GitHub CI" | ||
git config --global user.email "[email protected]" | ||
git add public-instances/instances.toml | ||
git commit -m "Update instances.toml" | ||
git push | ||
working-directory: morg |