Skip to content

Commit generated in one workflow does not trigger pull_request workflow #27146

Discussion options

You must be logged in to vote

I managed to get it to work with another token (used a Github App token but it should work with a Personal Access Token).

The important part was setting the token when doing the initial checkout using actions/checkout@v2, as described in GitHub - EndBug/add-and-commit: Add & commit files from a path directly from GitHub Actions.

name: Update next

on:
pull_request:
paths:
- "Gemfile.lock"

jobs:
update:
runs-on: ubuntu-20.04

env:
  BUNDLE_GEMFILE: Gemfile.next

steps:
  - name: Generate token
    id: generate_token
    uses: tibdex/github-app-token@v1
    with:
      app_id: ${{ secrets.APP_ID }}
      private_key: ${{ secrets.PRIVATE_KEY }}

  - uses: actions/checkout@v2
    with:
      to…

Replies: 6 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@gion-f3
Comment options

Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants