Skip to content

Commit

Permalink
fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
shiharuharu committed Oct 9, 2022
1 parent 5513fcd commit 0f7169c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@ jobs:
- name: Compare latest tags and set variables
run: |
upstreamLatestTag=$(curl -sSL --connect-timeout 5 -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/shiharuharu/domain-list-community/releases/latest | grep "tag_name" | cut -d\" -f4)
thisLatestTag=$(curl -sSL --connect-timeout 5 -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ github.repository }}/releases/latest | grep "tag_name" | cut -d\" -f4)
if [[ -z "$thisLatestTag" ]]; then
thisLatestTag=00000000000000
fi
thisLatestTag=$(curl -sSL --connect-timeout 5 -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/${{ github.repository }}/releases/latest | grep "tag_name" || echo "" | cut -d\" -f4)
if [[ $upstreamLatestTag != $thisLatestTag ]]; then
echo "NeedToSync=true" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 0f7169c

Please sign in to comment.