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 d747e84
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 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 @@ -18,10 +20,12 @@ jobs:
- uses: actions/checkout@v4

- 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/
github-token: ${{ secrets.GITHUB_TOKEN }}
run-id: ${{ github.event.workflow_run.id }}

- uses: actions/cache@v3
id: cacher
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 d747e84

Please sign in to comment.