Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Setup CI for release #1052

Merged
merged 5 commits into from
Oct 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions .github/workflows/_filechange_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: Filechange Checker
on:
workflow_call:
outputs:
fileschanged:
srcfileschanged:
description: "'true' if src/** or .github/workflows/** files have changed in the branch"
value: ${{ jobs.file-change-check.outputs.fileschanged }}
value: ${{ jobs.file-change-check.outputs.srcfileschanged }}
docfileschanged:
description: "'true' if docs/** or src/** or .github/workflows/** files have changed in the branch"
value: ${{ jobs.file-change-check.outputs.docfileschanged }}

jobs:
file-change-check:
Expand All @@ -14,7 +17,8 @@ jobs:
contents: read
pull-requests: read
outputs:
fileschanged: ${{ steps.checker.outputs.fileschanged }}
srcfileschanged: ${{ steps.srcchecker.outputs.srcfileschanged }}
docfileschanged: ${{ steps.docchecker.outputs.docfileschanged }}
steps:
- uses: actions/checkout@v3

Expand All @@ -27,11 +31,21 @@ jobs:
filters: |
src:
- 'src/**'
docs:
- 'docs/**'
actions:
- '.github/workflows/**'
- name: Check dorny for changes in specified filepaths
id: checker

- name: Check dorny for changes in src filepaths
id: srcchecker
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.actions == 'true'
run: |
echo "src or workflow file changes occurred"
echo ::set-output name=fileschanged::true
echo ::set-output name=srcfileschanged::true

- name: Check dorny for changes in docs related filepaths
id: docchecker
if: steps.dornycheck.outputs.src == 'true' || steps.dornycheck.outputs.docs == 'true' || steps.dornycheck.outputs.actions == 'true'
run: |
echo "docs, src or workflow file changes occurred"
echo ::set-output name=docfileschanged::true
Loading