Skip to content

Commit

Permalink
feat: add dispatch step to workflow to trigger scoop excavator
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbutt committed Mar 8, 2024
1 parent c8f5f00 commit e207709
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,44 @@ jobs:
run: ./build.ps1

- name: Release
id: release
if: github.ref == 'refs/heads/master'
run: pnpm semantic-release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/exec
@semantic-release/git
conventional-changelog-conventionalcommits
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Show Release Output Values
if: github.ref == 'refs/heads/master'
run: |
Write-Host "New Release Published: ${{ steps.release.outputs.new_release_published }}"
Write-Host "New Release Version: ${{ steps.release.outputs.new_release_version }}"
Write-Host "New Release Major Version: ${{ steps.release.outputs.new_release_major_version }}"
Write-Host "New Release Minor Version: ${{ steps.release.outputs.new_release_minor_version }}"
Write-Host "New Release Patch Version: ${{ steps.release.outputs.new_release_patch_version }}"
Write-Host "New Release Channel: ${{ steps.release.outputs.new_release_channel }}"
Write-Host "New Release Notes: ${{ steps.release.outputs.new_release_notes }}"
Write-Host "New Release Git Head: ${{ steps.release.outputs.new_release_git_head }}"
Write-Host "New Release Git Tag: ${{ steps.release.outputs.new_release_git_tag }}"
Write-Host "Last Release Version: ${{ steps.release.outputs.last_release_version }}"
Write-Host "Last Release Git Head: ${{ steps.release.outputs.last_release_git_head }}"
Write-Host "Last Release Git Tag: ${{ steps.release.outputs.last_release_git_tag }}"
- name: Dispatch Scoop Excavator
if: ${{ github.ref == 'refs/heads/master' && steps.release.outputs.new_release_published == 'true' }}
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.SCOOP_NORGATEAV_AMX }}
repository: norgate-av/scoop-norgateav-amx
event-type: excavate
client-payload: |-
{
"repo": {
"name": "${{ github.repository }}"
},
}

0 comments on commit e207709

Please sign in to comment.