Repository navigation
update-examples-prod #17
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: Update examples version (prod) | |
| on: | |
| repository_dispatch: | |
| types: [ update-examples-prod ] | |
| defaults: | |
| run: | |
| shell: pwsh | |
| jobs: | |
| update-examples-version: | |
| if: ${{ github.event_name == 'repository_dispatch' }} | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: gittools/cicd/checkout@v2 | |
| with: | |
| op_service_account_token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }} | |
| fetch-depth: 1 | |
| - run: | | |
| $oldTag = "${{ github.event.client_payload.oldTag }}" | |
| $newTag = "${{ github.event.client_payload.newTag }}" | |
| . .\update-version.ps1 # Import the functions | |
| dir -r .github\**\*.yml | % { update-ci-files $_ -OldVersion $oldTag -NewVersion $newTag } | |
| dir -r .azure\**\*.yml | % { update-ci-files $_ -OldVersion $oldTag -NewVersion $newTag } | |
| name: Update examples version | |
| - uses: gittools/cicd/git-commit-push@v2 | |
| with: | |
| message: "update gittools.gittools version to ${{ github.event.client_payload.newTag }}" | |
| name: Push changes |