Skip to content

Commit

Permalink
BRE-292: Sync ephemeral environment with GH workflow (#5174)
Browse files Browse the repository at this point in the history
* Add sync_environment call

* Put callable workflow in it's own job

* Switch to context for GitHub input

* Set requirements and inherit secrets

* Add the condition to the job

* Update .github/workflows/build.yml

Co-authored-by: Vince Grassia <[email protected]>

---------

Co-authored-by: Vince Grassia <[email protected]>
  • Loading branch information
mimartin12 and vgrassia authored Jan 2, 2025
1 parent bf2bf3c commit 840ff00
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -654,6 +654,21 @@ jobs:
}
})
trigger-ephemeral-environment-sync:
name: Trigger Ephemeral Environment Sync
needs: trigger-ee-updates
if: |
github.event_name == 'pull_request_target'
&& contains(github.event.pull_request.labels.*.name, 'ephemeral-environment')
uses: bitwarden/gh-actions/.github/workflows/_ephemeral_environment_manager.yml@main
with:
ephemeral_env_branch: process.env.GITHUB_HEAD_REF
project: server
sync_environment: true
pull_request_number: ${{ github.event.number }}
secrets: inherit


check-failures:
name: Check for failures
if: always()
Expand Down

0 comments on commit 840ff00

Please sign in to comment.