123456789101112131415161718192021222324252627282930313233 |
- # 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-22.04
- steps:
- - uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
- - name: Check for file changes
- uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
- id: changes
- with:
- list-files: shell
- token: ${{ github.token }}
- filters: .github/file-filters.yml
- - name: Create GitHub job
- uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # v6.3.3
- with:
- script: |
- require(`${process.env.GITHUB_WORKSPACE}/.github/workflows/scripts/deploy`).updateChangeType({
- github,
- context,
- fileChanges: ${{ toJson(steps.changes.outputs) }}
- });
|