I have the following github workflow definition:
name: Build
on:
pull_request:
types: [ opened, edited, synchronize ]
paths-ignore:
- '**.md'
push:
branches:
- main
jobs:
get-job:
name: My job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Say hello
run: |
echo Hello!

I have read the documentation and other sources, all of which describe the synchronize type as the type I need to use to ensure every new change in the PR triggers the workflow. Why does it work intermitently?
In my case this was being caused due to the fact that the head branch and base branch of my PR had conflicts. I figured this out thanks to this other answer and no thanks due to github actions output which gave no clue of this whatsoever.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With