Skip to content

Test cloudwatch

Test cloudwatch #19

Workflow file for this run

name: Changelog
on:
pull_request:
types: [opened, synchronize]
branches: [master]
paths:
- "src/**"
jobs:
get-label:
runs-on: ubuntu-latest
name: get label
outputs:
labels: "${{ steps.pr-labels.outputs.labels }}"
steps:
- name: Get PR labels
id: pr-labels
uses: joerick/pr-labels-action@v1.0.8
check-changelog-updates:
if: "${{ needs.get-label.outputs.labels != ' skip-changelog ' }}"
runs-on: ubuntu-latest
needs: get-label
name: Check changelog update
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v37
- name: Check changelog file
run: |
changed_files_string="${{ steps.changed-files.outputs.all_changed_files }}"
read -ra changed_files_array <<< "$changed_files_string"
chmod +x scripts/changelog_check.sh
for changed_file in "${changed_files_array[@]}"; do
if [[ "$changed_file" == *"/template."* ]]; then
scripts/changelog_check.sh $(dirname $changed_file)
fi
done