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

Commit

Permalink
Setup CI for release (#1052)
Browse files Browse the repository at this point in the history
* Setup CI for release

* Initial commit of CHANGELOG.md

* Pin vale and markdownlint-cli to current versions

* Update branch name for CI

* Pull request workflow job
  • Loading branch information
meain authored Oct 10, 2022
1 parent dd7710c commit 1793cc3
Show file tree
Hide file tree
Showing 26 changed files with 318 additions and 706 deletions.
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

0 comments on commit 1793cc3

Please sign in to comment.