Skip to content

Trigger dummy commit on main without changes #7461

Trigger dummy commit on main without changes

Trigger dummy commit on main without changes #7461

Workflow file for this run

name: Autojson main
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: main
- name: Grant execute permission for script
run: chmod +x *.sh
- name: Generate JSON file
run: ./pif.sh -p
- 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