Sync OSC Fork #43
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 OSC Fork | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| environment: | |
| description: "Target environment" | |
| required: true | |
| default: "prod" | |
| type: choice | |
| options: | |
| - prod | |
| - dev | |
| - stage | |
| jobs: | |
| sync-fork: | |
| name: Sync fork (${{ inputs.environment }}) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Validate environment | |
| run: | | |
| case "${{ inputs.environment }}" in | |
| prod|dev|stage) ;; | |
| *) echo "Invalid environment: ${{ inputs.environment }}"; exit 1 ;; | |
| esac | |
| - name: Install OSC CLI | |
| run: npm install -g @osaas/cli@4.31.3 | |
| - name: Trigger sync fork | |
| env: | |
| OSC_ACCESS_TOKEN: unused | |
| OSC_API_KEY: ${{ secrets.OSC_API_KEY }} | |
| run: osc --env "${{ inputs.environment }}" admin sync-fork eyevinn-open-live-studio |