-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add prettymapr explicit dependency * Update action versions * Update DB save paths for windows * Add test ls to view files in working dir * Remove test ls
- Loading branch information
Showing
7 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
name: Prepare PTAXSIM database | ||
description: Downloads and extracts the PTAXSIM database file from S3 | ||
inputs: | ||
PTAXSIM_DB_BASE_URL: | ||
PTAXSIM_DB_BASE_URI: | ||
required: false | ||
type: string | ||
description: S3 URI of PTAXSIM database versions | ||
default: "s3://ccao-data-public-us-east-1/ptaxsim" | ||
ASSUMED_ROLE: | ||
description: "AWS role used for S3" | ||
description: AWS role used for S3 actions | ||
outputs: | ||
PTAXSIM_VERSION: | ||
description: "PTAXSIM database version" | ||
|
@@ -16,7 +16,7 @@ runs: | |
using: composite | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Get database version | ||
id: version_db | ||
|
@@ -27,7 +27,7 @@ runs: | |
shell: bash | ||
|
||
- name: Cache database | ||
uses: actions/[email protected].1 | ||
uses: actions/[email protected].2 | ||
id: cache_db | ||
with: | ||
path: ptaxsim.db.bz2 | ||
|
@@ -36,7 +36,7 @@ runs: | |
|
||
- name: Configure AWS credentials | ||
if: steps.cache_db.outputs.cache-hit != 'true' | ||
uses: aws-actions/configure-aws-credentials@v2 | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ inputs.ASSUMED_ROLE }} | ||
aws-region: us-east-1 | ||
|
@@ -45,7 +45,7 @@ runs: | |
id: fetch_db | ||
if: steps.cache_db.outputs.cache-hit != 'true' | ||
run: | | ||
aws s3 cp ${{ inputs.PTAXSIM_DB_BASE_URL }}/ptaxsim-${{ env.PTAXSIM_VERSION }}.db.bz2 ${{ github.workspace }}/ptaxsim.db.bz2 --quiet | ||
aws s3 cp ${{ inputs.PTAXSIM_DB_BASE_URI }}/ptaxsim-${{ env.PTAXSIM_VERSION }}.db.bz2 ptaxsim.db.bz2 --quiet | ||
shell: bash | ||
|
||
- name: Unpack database (Linux) | ||
|
@@ -65,5 +65,5 @@ runs: | |
- name: Unpack database (Windows) | ||
if: runner.os == 'Windows' | ||
run: | | ||
7z x ${{ github.workspace }}/ptaxsim.db.bz2 | ||
7z x ${{ github.workspace }}\ptaxsim.db.bz2 | ||
shell: cmd |
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 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 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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,7 @@ Suggests: | |
odbc, | ||
openxlsx, | ||
pkgdown, | ||
prettymapr, | ||
purrr, | ||
readr, | ||
RColorBrewer, | ||
|