From 57c256e2fed10fd134f5b7983fa38bc2c4d6ca9f Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Wed, 6 Dec 2023 09:16:42 +0100 Subject: [PATCH 1/2] Update workflow for static database creation --- .github/workflows/static_database.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/static_database.yml b/.github/workflows/static_database.yml index d1b22d1a..12aed147 100644 --- a/.github/workflows/static_database.yml +++ b/.github/workflows/static_database.yml @@ -44,18 +44,7 @@ jobs: # Compress the database before uploading it to a Github release zip output.zip output.db - - name: Update database versioning - shell: bash - run: | - rm workflows/static_database/version.txt - echo "${{ steps.date.outputs.date }}" > workflows/static_database/version.txt - - name: Update resources - uses: test-room-7/action-update-file@v1 - with: - file-path: workflows/static_database/version.txt - commit-msg: Bump db version to ${{ steps.date.outputs.date }} - github-token: ${{ secrets.GITHUB_TOKEN }} - - name: Get newly made commit sha + - name: Get latest made commit sha id: commit_sha shell: bash run: | From 44120bfa73ed85c4b738da8b9b324e163fe37de9 Mon Sep 17 00:00:00 2001 From: Pieter Verschaffelt Date: Wed, 6 Dec 2023 09:24:54 +0100 Subject: [PATCH 2/2] Switch tag creation action --- .github/workflows/static_database.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/static_database.yml b/.github/workflows/static_database.yml index 12aed147..84cde2f1 100644 --- a/.github/workflows/static_database.yml +++ b/.github/workflows/static_database.yml @@ -44,24 +44,12 @@ jobs: # Compress the database before uploading it to a Github release zip output.zip output.db - - name: Get latest made commit sha - id: commit_sha - shell: bash - run: | - echo "::set-output name=sha::$(git rev-parse HEAD)" - name: Create new tag - uses: octokit/request-action@v2.x - id: create_new_tag + uses: rickstaa/action-create-tag@v1 + id: "tag_create" with: - route: POST /repos/:owner/:repo/git/tags - owner: unipept - repo: make-database tag: database-${{ steps.date.outputs.date }} message: "Static information database built on ${{ steps.date.outputs.date }}" - object: ${{ steps.commit_sha.outputs.sha }} - type: commit - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Release id: create_release uses: actions/create-release@v1