Trigger dummy commit on random without changes #7430
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
name: Autojson random | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- random | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: random | |
- name: Grant execute permission for script | |
run: chmod +x *.sh | |
- name: Generate JSON file | |
run: ./pif.sh | |
- name: Check differences in chiteroman.json | |
run: | | |
if git diff --exit-code chiteroman.json; then | |
echo "chiteroman.json is the same, no need to commit." | |
else | |
git config --global user.name "daboynb" | |
git config --global user.email "[email protected]" | |
git add chiteroman.json | |
git add osmosis.json | |
git add device_osmosis.json | |
git commit -m "Update pif.json" | |
git push | |
fi |