Update sync_wgcf.yml

dependabot/github_actions/docker/build-push-action-4.0.0
fscarmen 3 years ago committed by GitHub
parent 6ed7a8698a
commit fda8afeee3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      .github/workflows/sync_wgcf.yml

@ -19,6 +19,8 @@ jobs:
run: |
NOW=$(wget -qO- https://raw.githubusercontent.com/${{ env.USERNAME }}/test/main/menu.sh | grep 'latest=${latest' | cut -d \' -f2)
LATEST=$(wget -qO- "https://api.github.com/repos/ViRb3/wgcf/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g')
echo "$NOW"
echo "$LATEST"
if [ "$LATEST" != "$NOW" ]; then
[ ! -d ${GITHUB_WORKSPACE}/wgcf ] && mkdir -p ${GITHUB_WORKSPACE}/wgcf

Loading…
Cancel
Save