From 874596f6b73aca28d3ffed1d6b3bb96811a478c7 Mon Sep 17 00:00:00 2001 From: verena <9377970+vpchung@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:11:42 +0000 Subject: [PATCH 1/3] remove need to use python3.10 --- .github/workflows/update-oc-db-csv-files.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.github/workflows/update-oc-db-csv-files.yml b/.github/workflows/update-oc-db-csv-files.yml index 5cef7da5a7..a455645db8 100644 --- a/.github/workflows/update-oc-db-csv-files.yml +++ b/.github/workflows/update-oc-db-csv-files.yml @@ -9,15 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - # schematic only supports Python 3.9 and 3.10, so we will need - # to specifically use one of these versions. - - name: Install system dependencies - run: | - sudo add-apt-repository ppa:deadsnakes/ppa - sudo apt-get update - sudo apt-get install -y pip python3.10-venv libcurl4-openssl-dev - - - uses: actions/checkout@v4 + - uses: actions/checkout@v4.2.2 with: ref: ${{ github.event.pull_request.head.ref }} persist-credentials: false From 6de48bd553666082a068aa987baee713444a04b2 Mon Sep 17 00:00:00 2001 From: verena <9377970+vpchung@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:12:17 +0000 Subject: [PATCH 2/3] remove schematic step (commented out) --- .github/workflows/update-oc-db-csv-files.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/update-oc-db-csv-files.yml b/.github/workflows/update-oc-db-csv-files.yml index a455645db8..cc09880667 100644 --- a/.github/workflows/update-oc-db-csv-files.yml +++ b/.github/workflows/update-oc-db-csv-files.yml @@ -27,14 +27,6 @@ jobs: pip install gspread pandas numpy python3 apps/openchallenges/db-update/update_db_csv.py - # - name: Install schematic and validate files - # shell: bash - # run: | - # python3.10 -m venv .venv - # chmod 755 .venv/bin/activate - # source .venv/bin/activate - # pip3.10 install schematicpy - - name: Get current date run: | echo "TODAY=$(date +"%Y-%m-%d")" >> $GITHUB_ENV From e51f21543ecf51d32328fdcf07f765de4d606a2b Mon Sep 17 00:00:00 2001 From: verena <9377970+vpchung@users.noreply.github.com> Date: Tue, 14 Jan 2025 23:12:45 +0000 Subject: [PATCH 3/3] update actions versions --- .github/workflows/update-oc-db-csv-files.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-oc-db-csv-files.yml b/.github/workflows/update-oc-db-csv-files.yml index cc09880667..b2c8bcdadb 100644 --- a/.github/workflows/update-oc-db-csv-files.yml +++ b/.github/workflows/update-oc-db-csv-files.yml @@ -32,7 +32,7 @@ jobs: echo "TODAY=$(date +"%Y-%m-%d")" >> $GITHUB_ENV - name: Push changes, then create or update pull request - uses: peter-evans/create-pull-request@v6 + uses: peter-evans/create-pull-request@v7.0.6 with: title: 'chore(openchallenges): ${{ env.TODAY }} DB update' body: Daily OC database update(s)