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 cc09a14
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 10 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/release.yml → .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
name: Release
name: Continous Deployment

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

defaults:
run:
Expand All @@ -17,11 +18,12 @@ jobs:
steps:
- 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
- uses: actions/download-artifact@v4
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
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
name: CI

on: [pull_request]
name: Continous Integration

on:
push:
branches: [master]
paths:
- "docs/**"
- "JiraPS/**"
- "Tests/**"
pull_request:
branches: [master]
paths:
- ".github/workflows/**"
- "docs/**"
- "JiraPS/**"
- "Tests/**"
- "Tools/**"
- "JiraPS.build.ps1"
- "PSScriptAnalyzerSettings.psd1"
workflow_dispatch:

defaults:
run:
Expand Down

0 comments on commit cc09a14

Please sign in to comment.