Skip to content

Commit

Permalink
fix joplin workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AtaraxiaSjel committed Feb 18, 2024
1 parent ade39c8 commit a48f72e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/joplin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- name: Get latest release tag and hash
id: tags
run: |
RELEASE_TAG=$(curl -s GET "https://api.github.com/repos/${{ env.UPSTREAM }}/releases?per_page=10" | jq -er "[.[]|select(.prerelease==false)][0].tag_name")
RELEASE_SHA=$(curl -s GET "https://api.github.com/repos/${{ env.UPSTREAM }}/tags?per_page=10" | jq -er "[.[]|select(.name==\"$RELEASE_TAG\")][0].commit.sha")
BETA_TAG=$(curl -s GET "https://api.github.com/repos/${{ env.UPSTREAM }}/releases?per_page=10" | jq -er "[.[]|select(.prerelease==true)][0].tag_name")
BETA_SHA=$(curl -s GET "https://api.github.com/repos/${{ env.UPSTREAM }}/tags?per_page=10" | jq -er "[.[]|select(.name==\"$RELEASE_TAG\")][0].commit.sha")
RELEASE_TAG=$(curl -s GET "https://api.github.com/repos/${{ env.UPSTREAM }}/releases?per_page=40" | jq -er "[.[]|select(.prerelease==false)][0].tag_name")
RELEASE_SHA=$(curl -s GET "https://api.github.com/repos/${{ env.UPSTREAM }}/tags?per_page=40" | jq -er "[.[]|select(.name==\"$RELEASE_TAG\")][0].commit.sha")
BETA_TAG=$(curl -s GET "https://api.github.com/repos/${{ env.UPSTREAM }}/releases?per_page=40" | jq -er "[.[]|select(.prerelease==true)][0].tag_name")
BETA_SHA=$(curl -s GET "https://api.github.com/repos/${{ env.UPSTREAM }}/tags?per_page=40" | jq -er "[.[]|select(.name==\"$BETA_TAG\")][0].commit.sha")
echo "release_tag=$RELEASE_TAG" >> $GITHUB_OUTPUT
echo "release_sha=$RELEASE_SHA" >> $GITHUB_OUTPUT
echo "beta_tag=$BETA_TAG" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit a48f72e

Please sign in to comment.