# Add a GitHub Check to commits in "master" that specifies the "type" of files that were changed # ex: "only frontend", "only backed", or "fullstack" name: meta(deploy) on: push: branches: - master jobs: files-changed: name: detect what files changed runs-on: ubuntu-20.04 steps: - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0 - name: Check for file changes uses: getsentry/paths-filter@4512585405083f25c027a35db413c2b3b9006d50 # v2.11.1 id: changes with: list-files: shell token: ${{ github.token }} filters: .github/file-filters.yml - name: Create GitHub job uses: actions/github-script@e3cbab99d3a9b271e1b79fc96d103a4a5534998c # v5 with: script: | require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/scripts/deploy`).updateChangeType({ github, context, fileChanges: ${{ toJson(steps.changes.outputs) }} });