mirror of
https://github.com/bitwarden/server.git
synced 2025-05-20 19:14:32 -05:00
BRE-292: Sync ephemeral environment with GH workflow (#5174)
* 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 <593223+vgrassia@users.noreply.github.com> --------- Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
This commit is contained in:
parent
bf2bf3c13f
commit
840ff00189
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -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:
|
check-failures:
|
||||||
name: Check for failures
|
name: Check for failures
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user