Skip to content

Commit

Permalink
feat: Add dispatch turbine-go dependency (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
raulb authored May 11, 2022
1 parent ca923ec commit 3c80dc6
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/dispatch_turbine_go_dependency.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Remote Dispatch Turbine Go Dependency Responder

on: [repository_dispatch]

jobs:
update_turbine_go:
if: github.event.action == 'update_dependencies'
name: Update latest Turbine Go
runs-on: ubuntu-latest
steps:
- name: Event Information
run: |
echo "Event '${{ github.event.action }}' received from '${{ github.event.client_payload.repository }}' for commit '${{ github.event.client_payload.sha }}'"
- uses: actions/checkout@v2
with:
ref: master
- uses: actions/setup-go@v2
with:
go-version: ^1.17
- name: Inject insteadOf configuration
env:
MEROXA_MACHINE: ${{ secrets.MEROXA_MACHINE }}
run: |
git config --global url."https://${MEROXA_MACHINE}:[email protected]/".insteadOf "https://github.com/"
- name: Update Dependencies
run: |
go get -u github.com/meroxa/turbine-go@latest
make gomod
- name: Generate Branch name
id: branch
run: echo "::set-output name=branch::automated-dependency-updates-${{ github.event.client_payload.sha }}"
- name: Save changes in Branch
run: |
git config user.name github-actions
git config user.email [email protected]
git checkout -b ${{ steps.branch.outputs.branch }}
git add go* vendor/*
git commit -m "chore: Upgrade to latest turbine-go"
git push --set-upstream origin -f ${{ steps.branch.outputs.branch }}
- name: pull-request
uses: repo-sync/pull-request@v2
with:
source_branch: ${{ steps.branch.outputs.branch }}
destination_branch: "master"
github_token: ${{ secrets.MEROXA_MACHINE }}
pr_label: "ktlo, ready for review"
pr_title: "chore: Upgrade to latest turbine-go"
pr_body: "The following commands were run to generate changes: `go get -u github.com/meroxa/turbine-go@latest` and `make gomod`"

0 comments on commit 3c80dc6

Please sign in to comment.