update #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Remote Dispatch Action | |
on: [repository_dispatch] | |
jobs: | |
update-gardenctl-v2: | |
if: github.event.client_payload.component == 'gardenctl-v2' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Event Information | |
run: | | |
echo "Event '${{ github.event.action }}' payload '${{ github.event.client_payload.tag }}'" | |
echo "Darwin amd64 gardenctl-v2 binary hash '${{ github.event.client_payload.darwin_sha_amd64 }}'" | |
echo "Darwin arm64 gardenctl-v2 binary hash '${{ github.event.client_payload.darwin_sha_arm64 }}'" | |
echo "Linux gardenctl-v2 binary hash '${{ github.event.client_payload.linux_sha_amd64 }}'" | |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | |
- name: Run update script | |
run: ./.github/workflows/update-gardenctl-v2.sh ${{ github.event.client_payload.tag }} ${{ github.event.client_payload.darwin_sha_amd64 }} ${{ github.event.client_payload.darwin_sha_arm64 }} ${{ github.event.client_payload.linux_sha_amd64 }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04 # [email protected] | |
with: | |
add-paths: gardenctl-v2.rb | |
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 updates gardenctl-v2.rb to ${{ github.event.client_payload.tag }} | |
update-gardenlogin: | |
if: github.event.client_payload.component == 'gardenlogin' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Event Information | |
run: | | |
echo "Event '${{ github.event.action }}' payload '${{ github.event.client_payload.tag }}'" | |
echo "Darwin amd64 gardenlogin binary hash '${{ github.event.client_payload.darwin_sha_amd64 }}'" | |
echo "Darwin arm64 gardenlogin binary hash '${{ github.event.client_payload.darwin_sha_arm64 }}'" | |
echo "Linux gardenlogin binary hash '${{ github.event.client_payload.linux_sha_amd64 }}'" | |
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | |
- name: Run update script | |
run: ./.github/workflows/update-gardenlogin.sh ${{ github.event.client_payload.tag }} ${{ github.event.client_payload.darwin_sha_amd64 }} ${{ github.event.client_payload.darwin_sha_arm64 }} ${{ github.event.client_payload.linux_sha_amd64 }} | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@2b011faafdcbc9ceb11414d64d0573f37c774b04 # [email protected] | |
with: | |
add-paths: gardenlogin.rb | |
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 updates gardenlogin.rb to ${{ github.event.client_payload.tag }} |