The watch-dependencies workflow has elevated permissions and is protected by the github actions environment watch-dependencies-env. This means it cannot be tested.
To allow testing PRs to watch-dependnecies, we should:
- add pull_request trigger in watch-dependencies.yaml
- split the workflow into two jobs:
- figure out all the updates and produce
outputs (no environment no credentials)
- second job that only makes the PR, with
environment: watch-dependencies-env and if: not a PR, using the previous job's outputs
The watch-dependencies workflow has elevated permissions and is protected by the github actions environment
watch-dependencies-env. This means it cannot be tested.To allow testing PRs to watch-dependnecies, we should:
outputs(noenvironmentno credentials)environment: watch-dependencies-envandif: not a PR, using the previous job's outputs