Skip to content

Conversation

ze-flo
Copy link
Contributor

@ze-flo ze-flo commented Jul 18, 2024

Description

Lets renovate[bot] + dependabot[bot] automatically deploy to staging

if: >
github.ref != 'refs/heads/main' &&
(contains(needs.initialize.outputs.teams, 'Writers') ||
github.actor == 'dependabot[bot]' ||
Copy link
Contributor Author

@ze-flo ze-flo Jul 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opted to use github.actor rather than github.triggering_actor.

The reason? If one of us manually re-triggers the workflow, the output of garden github-teams will contain Writers and the job will run.

@ze-flo ze-flo marked this pull request as ready for review July 18, 2024 00:54
@ze-flo ze-flo requested a review from a team as a code owner July 18, 2024 00:54
@ze-flo ze-flo merged commit 9689e8e into main Jul 18, 2024
@ze-flo ze-flo deleted the ze-flo/ci-bot-deploy-fix branch July 18, 2024 15:45
geotrev pushed a commit that referenced this pull request Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants