Skip to content

Commit

Permalink
Change build frequency, get the latest release/tag properly
Browse files Browse the repository at this point in the history
  • Loading branch information
jrasanen authored Mar 28, 2024
1 parent bef7eaf commit a348c8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
schedule:
- cron: '0 */2 * * *'
- cron: '0 */6 * * *'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -22,7 +22,7 @@ jobs:
- name: Fetch the latest Bookwyrm release tag
id: bookwyrm_release
run: |
LATEST_RELEASE=$(curl -s https://api.github.com/repos/bookwyrm-social/bookwyrm/releases/latest | jq -r .tag_name)
LATEST_RELEASE=$(curl -s "https://api.github.com/repos/bookwyrm-social/bookwyrm/tags" | jq -r '.[0].name')
echo "Latest release tag is $LATEST_RELEASE"
echo "::set-output name=tag::$LATEST_RELEASE"
env:
Expand Down

0 comments on commit a348c8b

Please sign in to comment.