File tree Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Expand file tree Collapse file tree 2 files changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Update GitTools Actions
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ tag-name :
7+ description : ' Tag name to use for the release'
8+ required : true
9+ repository_dispatch :
10+ types : [ publish-release ]
11+
12+ defaults :
13+ run :
14+ shell : pwsh
15+
16+ permissions :
17+ contents : read
18+
19+ jobs :
20+ homebrew :
21+ permissions :
22+ contents : none
23+ name : Update GitTools Actions
24+ runs-on : ubuntu-24.04
25+ steps :
26+ -
27+ name : Get version
28+ id : get-version
29+ shell : pwsh
30+ run : |
31+ $version = "${{ github.event.client_payload.tag }}"
32+ if ($version -eq "") {
33+ $version = "${{ github.event.inputs.tag-name }}"
34+ }
35+ "version=$version" >> $env:GITHUB_OUTPUT
36+ -
37+ uses : peter-evans/repository-dispatch@v4
38+ name : Update GitTools Actions
39+ with :
40+ token : ${{ secrets.RELEASE_GITHUB_TOKEN }}
41+ repository : ${{ github.repository_owner }}/actions
42+ event-type : gitversion-update-examples
43+ client-payload : ' {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ steps.get-version.outputs.version }}"}'
Original file line number Diff line number Diff line change 4040 <File Path =" ../.github/workflows/codeql-analysis.yml" />
4141 <File Path =" ../.github/workflows/docs.yml" />
4242 <File Path =" ../.github/workflows/format.yml" />
43+ <File Path =" ../.github/workflows/gittools-actions.yml" />
4344 <File Path =" ../.github/workflows/homebrew.yml" />
4445 <File Path =" ../.github/workflows/mkdocs.yml" />
4546 <File Path =" ../.github/workflows/new-cli.yml" />
You can’t perform that action at this time.
0 commit comments