-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (27 loc) · 997 Bytes
/
update-version-test.yml
File metadata and controls
33 lines (27 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update examples version (test)
on:
repository_dispatch:
types: [ update-examples-test ]
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: 0
- run: |
$oldTag = "${{ github.event.client_payload.oldTag }}"
$newTag = "${{ github.event.client_payload.newTag }}"
. .\update-version.ps1 # Import the functions
dir -r .azure\gittools.gittools-test\**\*.yml | % { update-ci-files $_ -OldVersion $oldTag -NewVersion $newTag }
name: Update examples version
- uses: gittools/cicd/git-commit-push@v2
with:
message: "update gittools.gittools-test version to ${{ github.event.client_payload.newTag }}"
name: Push changes