Hey team good morning :slightly_smiling_face: We ...
# how-do-i
k
Hey team good morning 🙂 We have some github actions running when a PR is being closed to cleanup some artifacts. We noticed that when the original PR is closed by graphite merge queue CI optimization, the pipeline is not triggered. Is it a known issue ? And if it is, is there a way to work around this ? 🙂 Thanks a lot!
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
k
Also I checked on our automated PRs from renovate that are not passing by graphite, there the workflows is triggered 🙂
p
Hey Kenny, Can you let me know what your GH action trigger is? ie is it on closed and merged by chance? i dont think we mark the PRs as merged which might be the reason for this issue. Thanks, Brett
k
Hey Brett, The trigger is the following
Copy code
pull_request:
 - closed
As you mentioned the PRs are not merged but they are closed so it should still be executed 😄 My assumption is that it has to be with the way the original PR is closed because the workflow does execute for the temporary PRs
GTMQ_*
p
interesting, can you share your gh action config so i can try to reproduce this?
k
I cannot share the content but I can definitely share the trigger 🙂
Copy code
name: Delete build cache for closed or rebased PR

on:
  pull_request:
    types: [closed, synchronize]
    branches-ignore:
      - '**/graphite-base/**'

permissions:
  id-token: write
  contents: read
  pull-requests: read
p
Kenny,  circling back here, do you have an example PR where this happened i can share with the team to investigate further?