Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why will this not trigger on a pull request push commit update?

name: blabla bacon n eggs
on:
    pull_request:
        branches:
            - basickarl/gh-actions-pr

defaults:
    run:
        shell: bash

jobs:
    somting:
        runs-on: ubuntu-latest
        steps:
            - run: echo "testy"

I have pushed my code on the branch stated to the origin repo in github. I have created a pull request. I updated some code on the branch and pushed, but the actions is not triggering? How does one trigger a github action workflow when updating a pull request?

The updates to the branch I am making is the workflow file itself.

Here is an example repo: https://github.com/basickarl/github-actions/actions/workflows/test.yaml

For some reason only on: [pull_request] seems to work.

like image 664
basickarl Avatar asked Nov 21 '25 19:11

basickarl


1 Answers

Use types: [synchronize] under on: pull-request:

like image 194
Nishtha Paul Avatar answered Nov 24 '25 03:11

Nishtha Paul