Skip to content

update-examples-prod #14

update-examples-prod

update-examples-prod #14

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: Auth and Checkout
id: auth_and_checkout
uses: gittools/cicd/auth-checkout@main
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@main
with:
message: "update gittools.gittools version to ${{ github.event.client_payload.newTag }}"
name: Push changes