File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Update examples version
1+ name : Update examples version (prod)
22
33on :
44 repository_dispatch :
@@ -13,20 +13,23 @@ jobs:
1313 if : ${{ github.event_name == 'repository_dispatch' }}
1414 runs-on : ubuntu-24.04
1515 steps :
16- - uses : actions/checkout@v5
16+ - name : Auth and Checkout
17+ id : auth_and_checkout
18+ uses : gittools/cicd/auth-checkout@main
1719 with :
18- token : ${{ secrets.PUSH_GITHUB_TOKEN }}
20+ op-token : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
21+ fetch-depth : 0
22+
1923 - run : |
2024 $oldTag = "${{ github.event.client_payload.oldTag }}"
2125 $newTag = "${{ github.event.client_payload.newTag }}"
2226
2327 . .\update-version.ps1 # Import the functions
2428 dir -r .github\**\*.yml | % { update-ci-files $_ -OldVersion $oldTag -NewVersion $newTag }
2529 dir -r .azure\**\*.yml | % { update-ci-files $_ -OldVersion $oldTag -NewVersion $newTag }
26-
27- git add --verbose .
28- git config user.name 'gittools-bot'
29- git config user.email 'gittoolsbot@outlook.com'
30- git commit -m "update gittools.gittools version to $newTag" --allow-empty
31- git push --force
3230 name: Update examples version
31+
32+ - uses : gittools/cicd/git-commit-push@main
33+ with :
34+ message : " update gittools.gittools version to ${{ github.event.client_payload.newTag }}"
35+ name : Push changes
Original file line number Diff line number Diff line change 1- name : Update examples version
1+ name : Update examples version (test)
22
33on :
44 repository_dispatch :
@@ -13,19 +13,22 @@ jobs:
1313 if : ${{ github.event_name == 'repository_dispatch' }}
1414 runs-on : ubuntu-24.04
1515 steps :
16- - uses : actions/checkout@v5
16+ - name : Auth and Checkout
17+ id : auth_and_checkout
18+ uses : gittools/cicd/auth-checkout@main
1719 with :
18- token : ${{ secrets.PUSH_GITHUB_TOKEN }}
20+ op-token : ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
21+ fetch-depth : 0
22+
1923 - run : |
2024 $oldTag = "${{ github.event.client_payload.oldTag }}"
2125 $newTag = "${{ github.event.client_payload.newTag }}"
2226
2327 . .\update-version.ps1 # Import the functions
2428 dir -r .azure\gittools.gittools-test\**\*.yml | % { update-ci-files $_ -OldVersion $oldTag -NewVersion $newTag }
25-
26- git add --verbose .
27- git config user.name 'gittools-bot'
28- git config user.email 'gittoolsbot@outlook.com'
29- git commit -m "update gittools.gittools-test version to $newTag" --allow-empty
30- git push --force
3129 name: Update examples version
30+
31+ - uses : gittools/cicd/git-commit-push@main
32+ with :
33+ message : " update gittools.gittools-test version to ${{ github.event.client_payload.newTag }}"
34+ name : Push changes
You can’t perform that action at this time.
0 commit comments