Update wireguard-go.yml

dependabot/github_actions/docker/setup-buildx-action-2.6.0
fscarmen 3 years ago committed by GitHub
parent 5e58b60a93
commit 817844d4ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      .github/workflows/wireguard-go.yml

@ -2,8 +2,8 @@ name: Sync WireGuard-go
on:
workflow_dispatch:
# schedule:
# - cron: '18 2 * * *'
schedule:
- cron: '18 2 * * *'
jobs:
WireGuard-go:
@ -14,6 +14,7 @@ jobs:
env:
WORKDIR: ./wireguard-go-source
FILEDIR: wireguard-go
steps:
- name: Checkout code
@ -54,7 +55,8 @@ jobs:
- name: Move the files and delete temp dir
if: ${{ env.VERSION != '' }}
run: |
cp -f ${{ env.WORKDIR }}/dist/*.tar.gz wireguard-go/
[ ! -d ${{ env.FILEDIR }} ] && mkdir -p ${{ env.FILEDIR }}
cp -f ${{ env.WORKDIR }}/dist/*.tar.gz ${{ env.FILEDIR }}
rm -rf ${{ env.WORKDIR }}
- name: Upload to repository
@ -68,4 +70,4 @@ jobs:
if: ${{ env.VERSION != '' }}
with:
tag_name: WireGuard-go_v${{ env.VERSION }}
files: wireguard-go/*.tar.gz
files: ${{ env.FILEDIR }}/*.tar.gz

Loading…
Cancel
Save