Skip to content

Commit

Permalink
Merge pull request #37 from unipept/fix/static-db-tag-creation
Browse files Browse the repository at this point in the history
Update workflow for static database creation
  • Loading branch information
pverscha authored Dec 6, 2023
2 parents 9ebb206 + 44120bf commit 2f82a8a
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions .github/workflows/static_database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,35 +44,12 @@ 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
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
Expand Down

0 comments on commit 2f82a8a

Please sign in to comment.