Skip to content

Commit

Permalink
workflow_call
Browse files Browse the repository at this point in the history
  • Loading branch information
achilleas-k committed Jul 31, 2023
1 parent ab9a953 commit aa48a19
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,3 +148,9 @@ jobs:
with:
name: PR_STATUS
path: SKIP_CI.txt

run-gitlab-workflow:
name: "Run GitLab CI trigger workflow"
uses: ./.github/workflows/trigger-gitlab.yml
secrets:
IMAGEBUILDER_BOT_GITLAB_SSH_KEY: ${{ secrets.IMAGEBUILDER_BOT_GITLAB_SSH_KEY }}
8 changes: 4 additions & 4 deletions .github/workflows/trigger-gitlab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
name: Trigger GitLab CI

on:
workflow_run:
workflows: ["Tests"]
types: [in_progress]
workflow_call:
secrets:
IMAGEBUILDER_BOT_GITLAB_SSH_KEY:
required: true

jobs:
trigger-gitlab:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
env:
IMAGEBUILDER_BOT_GITLAB_SSH_KEY: ${{ secrets.IMAGEBUILDER_BOT_GITLAB_SSH_KEY }}
Expand Down

0 comments on commit aa48a19

Please sign in to comment.