Sync standards #4
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 standards | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| org: | |
| description: "Standards org" | |
| default: "EvergineTeam" | |
| required: false | |
| repo: | |
| description: "Standards repo" | |
| default: "evergine-standards" | |
| required: false | |
| ref: | |
| description: "Branch/tag/commit of standards" | |
| default: "v2" | |
| required: false | |
| target_branch: | |
| description: "Target branch to apply changes" | |
| default: "main" | |
| required: false | |
| commit_message: | |
| description: "Commit message" | |
| required: false | |
| mode: | |
| description: "auto (push then PR if needed) or pr (always PR)" | |
| default: "auto" | |
| required: false | |
| dry_run: | |
| description: "Dry run mode - show what would be done without making changes" | |
| type: boolean | |
| default: false | |
| required: false | |
| schedule: | |
| - cron: "0 1 1 * *" # 01:00 UTC on the 1st of every month | |
| jobs: | |
| sync: | |
| if: github.event_name != 'schedule' || github.ref == 'refs/heads/main' | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| uses: EvergineTeam/evergine-standards/.github/workflows/_sync-standards-reusable.yml@v2 | |
| with: | |
| org: ${{ github.event.inputs.org || 'EvergineTeam' }} | |
| repo: ${{ github.event.inputs.repo || 'evergine-standards' }} | |
| ref: ${{ github.event.inputs.ref || 'main' }} | |
| target_branch: ${{ github.event.inputs.target_branch || 'main' }} | |
| commit_message: "${{ github.event.inputs.commit_message || vars.STANDARDS_COMMIT_MESSAGE || 'auto: sync standard files [skip ci]' }}" | |
| mode: ${{ github.event.inputs.mode || 'auto' }} | |
| dry_run: ${{ github.event.inputs.dry_run == 'true' }} | |
| secrets: inherit |