Detect .dockerignore out-of-sync with git ls-files #3964
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
name: Detect .dockerignore out-of-sync with git ls-files | |
on: | |
pull_request: | |
push: | |
schedule: | |
- cron: '0 16 * * 5' # Every Friday 4pm | |
workflow_dispatch: | |
jobs: | |
dockerignore_detect_out_of_sync: | |
name: Detect .dockerignore out-of-sync with git ls-files | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Check for out-of-sync .dockerignore | |
run: |- | |
diff -U0 <(./generate_whitelist_dockerignore_file.sh) .dockerignore |