Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump upload-artifact action; actually commit artifacts #23

Merged
merged 3 commits into from
Dec 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .github/workflows/build-collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ jobs:
Rscript --vanilla "scripts/query_collection.R" --git_pat "$GH_PAT"

- name: Archive collection
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: collection
path: resources/collection.tsv
Expand All @@ -86,43 +86,43 @@ jobs:
Rscript --vanilla "scripts/query_youtube.R" --yt_key "$YT_KEY"

- name: Archive youtube results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: youtube_metadata
path: resources/youtube_metadata.csv

- name: Archive youtube `shorts` playlist results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: youtube_shorts_data
path: resources/youtube_shorts_data.csv

- name: Archive youtube `demos` playlist results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: youtube_demos_data
path: resources/youtube_demos_data.csv

- name: Archive youtube `getting started` playlist results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: youtube_getting_started_data
path: resources/youtube_getting_started_data.csv

- name: Archive youtube `WDL` playlist results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: youtube_getting_anvil_wdl_data
path: resources/youtube_anvil_wdl_data.csv

- name: Archive youtube `gdscn sars` playlist results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: youtube_getting_gdscn_sars_data
path: resources/youtube_gdscn_sars_data.csv

- name: Archive youtube `gdscn soil protocols` playlist results
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: youtube_getting_gdscn_soil_project_data
path: resources/youtube_gdscn_soil_project_data.csv
Expand All @@ -133,7 +133,7 @@ jobs:
env:
GH_PAT: ${{ secrets.gh_pat }}
run: |
git add --force resources/collection.tsv resources/youtube_metadata.csv resources/youtube_shorts_data.csv resources/youtube_demos_data.csv resources/youtube_getting_started_data.csv resources/youtube_gdscn_sars_data.csv
git add --force resources/collection.tsv resources/youtube_*.csv
git commit -m 'Add API query files' || echo "No changes to commit"
git fetch
git merge -s recursive --strategy-option=ours origin/main --allow-unrelated-histories
Expand All @@ -143,7 +143,7 @@ jobs:
if: ${{ inputs.render-type == 'preview' }}
run: |
branch_name='preview-${{ github.event.pull_request.number }}'
git add --force resources/collection.tsv resources/youtube_metadata.csv resources/youtube_shorts_data.csv resources/youtube_demos_data.csv resources/youtube_getting_started_data.csv resources/youtube_gdscn_sars_data.csv
git add --force resources/collection.tsv resources/youtube_*.csv
git commit -m 'Add API query files' || echo "No changes to commit"
git fetch
git merge -s recursive --strategy-option=theirs origin/${{ github.head_ref }} --allow-unrelated-histories
Expand Down
2 changes: 1 addition & 1 deletion index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ knitr::kable(make_youtube_table("resources/youtube_gdscn_sars_data.csv"), format
```{r, echo = FALSE, message = FALSE, warning = FALSE}
source("scripts/render_youtube_list.R")

knitr::kable(make_youtube_table("youtube_gdscn_soil_project_data.csv"), format = "html")
knitr::kable(make_youtube_table("resources/youtube_gdscn_soil_project_data.csv"), format = "html")
```


Loading