v0.2.8 #18
Workflow file for this run
This file contains hidden or 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: Sync install.sh to website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| release: | |
| types: | |
| - published | |
| jobs: | |
| sync-install: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'blockopsnetwork/ponos' && github.actor != 'dependabot[bot]' | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout ponos | |
| uses: actions/checkout@v4 | |
| - name: Checkout website repo | |
| uses: actions/checkout@v4 | |
| with: | |
| repository: blockops-sh/nodeoperator-ai-client | |
| token: ${{ secrets.NODEOPERATOR_SITE_TOKEN }} | |
| path: site | |
| - name: Copy install script | |
| run: | | |
| cp scripts/install.sh site/public/install.sh | |
| - name: Commit and push if changed | |
| run: | | |
| cd site | |
| if [ -n "$(git status --porcelain)" ]; then | |
| git add public/install.sh | |
| git config user.name "nodeoperator-ci" | |
| git config user.email "ci@nodeoperator.ai" | |
| git commit -m "chore: sync install.sh" | |
| git push | |
| else | |
| echo "No changes to commit" | |
| fi |