Skip to content

update

update #21

Workflow file for this run

name: Remote Dispatch Action
on: [repository_dispatch]
jobs:
package-push-common:
runs-on: windows-latest
outputs:
cleaned_version: ${{ steps.get_version.outputs.cleaned_version }}
steps:
- name: Event Information
id: event_info
run: |
echo "Event '${{ github.event.action }}' payload '${{ github.event.client_payload.tag }}'"
echo "Windows binary hash '${{ github.event.client_payload.windows_sha }}'"
- name: Get Version
id: get_version
run: |
$version="${{ github.event.client_payload.tag }}"
$cleaned_version=$version.replace('v','')
echo "cleaned_version=$cleaned_version" >> $env:GITHUB_OUTPUT
package-push-gardenlogin:
if: github.event.client_payload.component == 'gardenlogin'
runs-on: windows-latest
needs: package-push-common
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected]
- name: Update package source files
run: .github\workflows\update-gardenlogin.ps1 ${{ github.event.client_payload.tag }} ${{ github.event.client_payload.windows_sha }}
- name: Choco pack
uses: crazy-max/ghaction-chocolatey@5a5864861ce2c988001531e48993aa687c51f6c8 # [email protected]
with:
args: pack gardenlogin\gardenlogin.nuspec --version=${{ needs.package-push-common.outputs.cleaned_version }} -y --outdir gardenlogin
- name: Choco push
if: ${{ vars.SKIP_CHOCO_PUSH_GARDENLOGIN != 'true' }}
uses: crazy-max/ghaction-chocolatey@5a5864861ce2c988001531e48993aa687c51f6c8 # [email protected]
with:
args: push "gardenlogin\gardenlogin.${{ needs.package-push-common.outputs.cleaned_version }}.nupkg" --source https://chocolatey.org -k ${{ secrets.CHOCOLATEY_API_KEY }}
- name: Choco push - print skip info
if: ${{ vars.SKIP_CHOCO_PUSH_GARDENLOGIN == 'true' }}
run: echo "Choco push step was skipped for package-push-gardenlogin."
- name: Create Pull Request
uses: peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666 # [email protected]
with:
add-paths: gardenlogin\gardenlogin.${{ needs.package-push-common.outputs.cleaned_version }}.nupkg,gardenlogin\tools\chocolateyinstall.ps1,gardenlogin\tools\chocolateyuninstall.ps1
branch: update_${{ github.event.client_payload.component }}_${{ github.event.client_payload.tag }}
delete-branch: true
title: update ${{ github.event.client_payload.component }} to ${{ github.event.client_payload.tag }}
body: This PR adds Chocolatey package for version ${{ github.event.client_payload.tag }} and updates package sources
package-push-gardenctl-v2:
if: github.event.client_payload.component == 'gardenctl-v2'
runs-on: windows-latest
needs: package-push-common
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected]
- name: Update package source files
run: .github\workflows\update-gardenctl-v2.ps1 ${{ github.event.client_payload.tag }} ${{ github.event.client_payload.windows_sha }}
- name: Choco pack
uses: crazy-max/ghaction-chocolatey@5a5864861ce2c988001531e48993aa687c51f6c8 # [email protected]
with:
args: pack gardenctl-v2\gardenctl-v2.nuspec --version=${{ needs.package-push-common.outputs.cleaned_version }} -y --outdir gardenctl-v2
- name: Choco push
if: ${{ vars.SKIP_CHOCO_PUSH_GARDENCTL_V2 != 'true' }}
uses: crazy-max/ghaction-chocolatey@5a5864861ce2c988001531e48993aa687c51f6c8 # [email protected]
with:
args: push "gardenctl-v2\gardenctl-v2.${{ needs.package-push-common.outputs.cleaned_version }}.nupkg" --source https://chocolatey.org -k ${{ secrets.CHOCOLATEY_API_KEY }}
- name: Choco push - print skip info
if: ${{ vars.SKIP_CHOCO_PUSH_GARDENCTL_V2 == 'true' }}
run: echo "Choco push step was skipped for package-push-gardenctl-v2."
- name: Create Pull Request
uses: peter-evans/create-pull-request@284f54f989303d2699d373481a0cfa13ad5a6666 # [email protected]
with:
add-paths: gardenctl-v2\gardenctl-v2.${{ needs.package-push-common.outputs.cleaned_version }}.nupkg,gardenctl-v2\tools\chocolateyinstall.ps1
branch: update_${{ github.event.client_payload.component }}_${{ github.event.client_payload.tag }}
delete-branch: true
title: update ${{ github.event.client_payload.component }} to ${{ github.event.client_payload.tag }}
body: This PR adds Chocolatey package for version ${{ github.event.client_payload.tag }} and updates package sources