Skip to content

Commit 0dd2fef

Browse files
authored
Merge pull request #4730 from arturcic/feature/4725
#4725 - adds workflow to update GitTools Actions
2 parents 1419e4b + 514e2be commit 0dd2fef

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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 }}"}'

build/CI.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
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" />

0 commit comments

Comments
 (0)