Skip to content

Commit

Permalink
Nobody likes infinite loops
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultamartin committed Sep 13, 2023
1 parent 89bcf89 commit a1d804d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/update-public-instances.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,13 @@ jobs:
cd piu && yarn && yarn run update && cd ..
cp piu/instances.toml morg/content/public-instances/instances.toml
# Delete this step before merging to main
- name: Commit and push data (within PR)
run: |
git config --global user.name "GitHub CI"
git config --global user.email "[email protected]"
git switch instance-picker
git add content/public-instances/instances.toml
git commit -m "Update instances.toml"
git push
working-directory: morg

# Delete the if before merging to main
- 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 add content/public-instances/instances.toml
git commit -m "Update instances.toml"
git push
working-directory: morg

0 comments on commit a1d804d

Please sign in to comment.