Skip to content

Commit

Permalink
Trigger build after creating PR
Browse files Browse the repository at this point in the history
  • Loading branch information
pheki committed Jul 19, 2023
1 parent 525a29a commit a27d86d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build example
name: Build

on:
push:
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/update-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,19 @@ jobs:
cargo fmt
- name: Commit and create pull request
id: create-pull-request
uses: peter-evans/create-pull-request@v5
with:
title: Update vita-headers bindings
body: Created by the action at [/.workflows/update-bindings.yml](../tree/main/.workflows/update-bindings.yml)
branch: update-bindings
delete-branch: true
commit-message: Update vita-headers to ${{ env.VITA_HEADERS_HASH }}
committer: github-actions <[email protected]>
assignees: pheki

- name: Trigger build
env:
# Required by Github CLI (`gh`)
GH_TOKEN: ${{ github.token }}
run: |
gh workflow run build.yml --ref ${{ steps.create-pull-request.outputs.pull-request-head-sha }}

0 comments on commit a27d86d

Please sign in to comment.