Skip to content

Add CHANGELOG.md and update CONTRIBUTING.md #1

Add CHANGELOG.md and update CONTRIBUTING.md

Add CHANGELOG.md and update CONTRIBUTING.md #1

Workflow file for this run

name: CI
on:
pull_request:
branches:
- develop
jobs:
# ------------------------------------------------------------------------------------------------------------------------------------------------
# Event `pull_request`: Compare the last commit of the main branch or last remote commit of the PR branch -> to the current commit of a PR branch.
# ------------------------------------------------------------------------------------------------------------------------------------------------
changed_files:
runs-on: ubuntu-latest
name: Test changed-files
steps:
- uses: actions/checkout@v4
# -----------------------------------------------------------------------------------------------------------
# Example 1
# -----------------------------------------------------------------------------------------------------------
- name: changelog modified
id: changelog-modified
uses: tj-actions/changed-files@v42
with:
files: CHANGELOG.md
- name: List all changed files
env:
ALL_CHANGED_FILES: ${{ steps.changelog-modified.outputs.all_changed_files }}
run: |
if "CHANGELOG.md" not in ${ALL_CHANGED_FILES}:
echo "CHANGELOG.md was not modified"
exit 1
else:
exit 0