Skip to content

Commit

Permalink
Upgrade versions of Github Action scripts
Browse files Browse the repository at this point in the history
closes #179 #180
  • Loading branch information
augusto-herrmann committed Jun 5, 2023
1 parent bce0ec9 commit b70086d
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ jobs:
- name: Checkout git
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.9
architecture: x64
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
uses: py-actions/py-dependency-install@v4
with:
path: "scripts/requirements.txt"
- name: Prepare build
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/frictionless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Validate data
uses: frictionlessdata/repository@v1
uses: frictionlessdata/repository@v2
with:
inquiry: data/data-validation.yaml
6 changes: 3 additions & 3 deletions .github/workflows/update_data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ jobs:
with:
ref: main # branch
- name: Setup Python
uses: actions/setup-python@v2
uses: actions/setup-python@v3
with:
python-version: 3.8
architecture: x64
- name: Install Python dependencies
uses: py-actions/py-dependency-install@v2
uses: py-actions/py-dependency-install@v4
with:
path: "scripts/requirements.txt"
- name: Update ${{ matrix.source }}.csv file
run: "python3 scripts/import/${{ matrix.source }}/import_${{ matrix.source }}.py --output data/${{ matrix.source }}.csv"
- name: re-sync with git repo
run: git pull
- name: commit & push with rebase
uses: augusto-herrmann/rebase-commit-push@1.1.1
uses: benkaiser/rebase-commit-push@1.3
with:
branch: main
author_email: 41898282+github-actions[bot]@users.noreply.github.com
Expand Down
2 changes: 2 additions & 0 deletions data/data-validation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
tasks:
- path: data/datapackage.json
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion scripts/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
python-slugify[unidecode]==6.1.1
requests==2.31.0
pandas==1.4.1
frictionless==4.28.1
frictionless==5.13.1

0 comments on commit b70086d

Please sign in to comment.