File tree Expand file tree Collapse file tree
actions/download-demo-gcp Expand file tree Collapse file tree Load diff This file was deleted.
Original file line number Diff line number Diff line change 1+ version : 2
2+ updates :
3+ # Python dependencies. Dependabot discovers pyproject.toml and the
4+ # pip-compile-generated requirements-lock.txt in this directory and
5+ # auto-selects the pip-compile resolver.
6+ - package-ecosystem : " pip"
7+ directory : " /"
8+ schedule :
9+ interval : " weekly"
10+
11+ # Third-party actions referenced by workflow "uses:" pins.
12+ - package-ecosystem : " github-actions"
13+ directory : " /"
14+ schedule :
15+ interval : " weekly"
Original file line number Diff line number Diff line change 1717 id-token : ' write'
1818 steps :
1919 - name : Check out repository code
20- uses : actions/checkout@v3
20+ uses : actions/checkout@v4
2121
2222 - id : ' auth'
2323 uses : ' google-github-actions/auth@v2'
Original file line number Diff line number Diff line change 99 steps :
1010 - name : checkout
1111 uses : actions/checkout@v4
12+ with :
13+ # Full history so we can diff the PR branch against its base
14+ fetch-depth : 0
1215 - name : Install Python
1316 uses : actions/setup-python@v5
1417 with :
1518 python-version : " 3.12"
1619 - name : install sqlfluff
1720 run : " pip install sqlfluff==4.1.0"
18- - name : Get changed files
19- id : get_file_changes
20- uses : trilom/file-changes-action@v1.2.4
21- with :
22- output : ' '
2321 - name : Get changed .sql files in mimic-iv concepts folder
2422 id : get_files_to_lint
2523 shell : bash
2624 run : |
27- # Compose list of changed SQL files under mimic-iv/concepts and export to step output
28- raw="${{ steps.get_file_changes.outputs.files_modified }} ${{ steps.get_file_changes.outputs.files_added }}"
29- # Check for mimic-iv SQL files which may have changed
30- filtered="$(printf '%s' "$raw" | tr -s ' ' '\n' | grep -E '^mimic-iv/concepts/.*[.]sql$' || true)"
31- # Turn this into a space separated list for the next step
32- files="$(printf '%s' "$filtered" | tr -s '\n' ' ')"
25+ # Added/modified (--diff-filter=AM) SQL files on the PR branch since
26+ # it diverged from the base branch, restricted to mimic-iv/concepts.
27+ files="$(git diff --name-only --diff-filter=AM \
28+ "origin/${{ github.base_ref }}...HEAD" -- 'mimic-iv/concepts/' \
29+ | grep -E '[.]sql$' | tr '\n' ' ' || true)"
3330 echo "lintees=${files}" >> "$GITHUB_OUTPUT"
3431
3532 - name : Lint SQL files
Original file line number Diff line number Diff line change 1515 id-token : ' write'
1616 steps :
1717 - name : Check out repository code
18- uses : actions/checkout@v3
18+ uses : actions/checkout@v4
1919
2020 - id : ' auth'
2121 uses : ' google-github-actions/auth@v2'
Original file line number Diff line number Diff line change @@ -11,13 +11,10 @@ jobs:
1111
1212 steps :
1313 - name : Check out repository code
14- uses : actions/checkout@v3
14+ uses : actions/checkout@v4
1515
1616 - name : Download demo data
1717 uses : ./.github/actions/download-demo
18- with :
19- gcp-project-id : ${{ secrets.GCP_PROJECT_ID }}
20- gcp-sa-key : ${{ secrets.GCP_SA_KEY }}
2118
2219 - name : Extract demo data to local folder
2320 run : |
Original file line number Diff line number Diff line change 1414 id-token : ' write'
1515 steps :
1616 - name : Check out repository code
17- uses : actions/checkout@v3
17+ uses : actions/checkout@v4
1818
1919 - id : ' auth'
2020 uses : ' google-github-actions/auth@v2'
Original file line number Diff line number Diff line change 1212
1313 steps :
1414 - name : Check out repository code
15- uses : actions/checkout@v3
15+ uses : actions/checkout@v4
1616
1717 - name : Python dependencies
1818 run : |
You can’t perform that action at this time.
0 commit comments