Merge pull request #78 from per1234/dependabot/npm_and_yarn/eslint-pl… #468
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This repository contains intentionally duplicated copies of files: | |
# - Workflow template copies in .github/workflows used for this repository's own CI system. | |
# - Assets for the workflow templates used in this repository. | |
# | |
# This workflow checks that the copies are in sync. | |
# If the workflow fails, run workflow-templates/etc/sync.sh and commit. | |
name: Check File Duplicates Sync | |
# See: https://docs.github.com/en/actions/reference/events-that-trigger-workflows | |
on: | |
push: | |
pull_request: | |
jobs: | |
check-sync: | |
runs-on: ubuntu-latest | |
permissions: {} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Check file duplicates sync | |
run: | | |
SYNC_SCRIPT_PATH="workflow-templates/etc/sync.sh" | |
"${{ github.workspace }}/$SYNC_SCRIPT_PATH" | |
git add . | |
if ! git diff --color --exit-code HEAD; then | |
echo "::error::File duplicates are out of sync. Please run $SYNC_SCRIPT_PATH" | |
exit 1 | |
fi |