Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/gittools-actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Update GitTools Actions

on:
workflow_dispatch:
inputs:
tag-name:
description: 'Tag name to use for the release'
required: true
repository_dispatch:
types: [ publish-release ]

defaults:
run:
shell: pwsh

permissions:
contents: read

jobs:
homebrew:
permissions:
contents: none
name: Update GitTools Actions
runs-on: ubuntu-24.04
steps:
-
name: Get version
id: get-version
shell: pwsh
run: |
$version = "${{ github.event.client_payload.tag }}"
if ($version -eq "") {
$version = "${{ github.event.inputs.tag-name }}"
}
"version=$version" >> $env:GITHUB_OUTPUT
-
uses: peter-evans/repository-dispatch@v4
name: Update GitTools Actions
with:
token: ${{ secrets.RELEASE_GITHUB_TOKEN }}
repository: ${{ github.repository_owner }}/actions
event-type: gitversion-update-examples
client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}", "tag": "${{ steps.get-version.outputs.version }}"}'
1 change: 1 addition & 0 deletions build/CI.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
<File Path="../.github/workflows/codeql-analysis.yml" />
<File Path="../.github/workflows/docs.yml" />
<File Path="../.github/workflows/format.yml" />
<File Path="../.github/workflows/gittools-actions.yml" />
<File Path="../.github/workflows/homebrew.yml" />
<File Path="../.github/workflows/mkdocs.yml" />
<File Path="../.github/workflows/new-cli.yml" />
Expand Down
Loading