Open ZIJ opened 10 months ago
Tagging @frank-bee - this seems to be the root cause of the issue you're facing
@ZIJ thanks for your help What do you mean with "triggering via Github App"? The re is no word about that in the readme you referenced.
@frank-bee indeed I seem to have introduced confusion, apologies. And docs seem unclear on that, will update
To benefit from the GitHub app you can either use the cloud-based one at https://login.digger.dev/
Or self host the orchestrator: https://docs.digger.dev/self-host/deploy-binary
@ZIJ I installed the app, have a token in workflow as well. But you mean I have to have these triggers?
on:
workflow_dispatch:
inputs:
id:
description: 'run identifier'
required: false
job:
required: true
I change the trigger: now on a PR the workflow is not triggered (but the digger app is installed)
When Digger is triggered via comment directly and not via backend orchestrator, the version of the workflow file and digger.yml will not taken from the PR branch, but from the main branch instead.
This can lead to confusing behaviours. For example, user introduces digger.yml together with terraform in a single PR (common scenario). Plan works fine; but then they run
digger apply
it'd say "no projects impacted" because digger.yml is taken from the main branch.Ideally the "direct trigger" mode without an orchestrator backend shouldn't be used at all but in reality people use it anyways, so we need to handle it better somehow.
Workarounds
Two options: