Merge pull request #200 from deepworks-net/release/v1.0.324 #7
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: Bridge Production Pipeline | |
| on: | |
| push: | |
| paths: | |
| - 'axioms/**/*.fcm' | |
| - '.bridge/**' | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| paths: | |
| - 'axioms/**/*.fcm' | |
| - '.bridge/**' | |
| workflow_dispatch: | |
| jobs: | |
| generate-and-validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Generate Actions from FCMs | |
| run: | | |
| bash .bridge/production-generator.sh | |
| - name: Validate Generated Actions | |
| run: | | |
| bash .bridge/production-validator.sh | |
| - name: Check for Changes | |
| id: check-changes | |
| run: | | |
| if [[ -n $(git status --porcelain) ]]; then | |
| echo "changes=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "changes=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Commit Generated Actions | |
| if: steps.check-changes.outputs.changes == 'true' | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "[email protected]" | |
| git add actions/ | |
| git commit -m "chore: Regenerate actions from FCMs [skip ci]" | |
| - name: Push Changes | |
| if: steps.check-changes.outputs.changes == 'true' && github.event_name == 'push' | |
| run: | | |
| git push |