Skip to content

Commit

Permalink
testing workflow_run for CI to trigger CD
Browse files Browse the repository at this point in the history
  • Loading branch information
lipkau committed Dec 21, 2023
1 parent 93b30b8 commit 470222c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/release.yml → .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: Release
name: Continous Deployment

on:
push:
branches:
- feature/package-artifact # TODO: what should be a trigger?
workflow_run:
workflows: ["Continous Integration"]
branches: ["main", "master", "feature/package-artifact"]
types:
- completed
workflow_dispatch:

defaults:
Expand All @@ -17,8 +19,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pwshrc/[email protected]
with:
name: 'Release'

- uses: actions/download-artifact@v4 # TODO: this file is not available, as it's an artefact from another pipeline
# https://github.com/actions/download-artifact#download-artifacts-from-other-workflow-runs-or-repositories
# https://github.com/actions/download-artifact#download-artifacts-from-other-workflow-runs-or-repositories
with:
name: Release
path: ./Release/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Continous Integration

on: [pull_request]

Expand Down

0 comments on commit 470222c

Please sign in to comment.