Skip to content

Commit

Permalink
attempt to fix artifact conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
bl-young committed Nov 4, 2024
1 parent 068255f commit 4c882b4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/save-raw-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
matrix:
config:
- {os: ubuntu-latest, r: 'release'}
script-run:
- data-raw/BEAData.R
- data-raw/CensusData.R
- data-raw/EIAData.R
- data-raw/FAFData.R
- data-raw/USASpendingData.R
script-run: # all in data-raw/
- BEAData.R
- CensusData.R
- EIAData.R
- FAFData.R
- USASpendingData.R
data-year:
- 2012
- 2013
Expand Down Expand Up @@ -67,15 +67,15 @@ jobs:
devtools::load_all()
year <- ${{ matrix.data-year }}
options(timeout = 1000)
source("${{ matrix.script-run }}")
source("data-raw/${{ matrix.script-run }}")
shell: Rscript {0}

# Upload .rds files
- name: Upload .rds files and prepare zip for manual download
uses: actions/upload-artifact@v4
with:
# Artifact name
name: data and metadata
name: data and metadata - ${{ matrix.script-run }} - ${{ matrix.data-year }}
# A file, directory or wildcard patter that describes what to upload
path: "data/*.rds"
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
Expand All @@ -86,7 +86,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
# Artifact name
name: data and metadata
name: data and metadata - ${{ matrix.script-run }} - ${{ matrix.data-year }}
# A file, directory or wildcard patter that describes what to upload
path: "inst/extdata/metadata/*.json"
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
Expand Down

0 comments on commit 4c882b4

Please sign in to comment.