CasaOS - A simple, easy-to-use, elegant open-source Personal Cloud system.
Update push_test_server.yml
raller10288425011e7393
diff --git a/.github/workflows/push_test_server.yml b/.github/workflows/push_test_server.ymlindex cd0b2ad..4a74b27 100644--- a/.github/workflows/push_test_server.yml+++ b/.github/workflows/push_test_server.yml@@ -18,24 +18,28 @@ jobs:run: sudo apt install --yes git- name: git globalrun: sudo git config --global --add safe.directory '*'- -- name: Fetch all tags+ - name: set version+ run: sudo git tag v99.99.99-alpha++ - name: Fetch all tagsrun: sudo git fetch --force --tags+- name: Get versionid: get_version# run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}run: echo "VERSION=$(git describe --abbrev=0 --tags | awk -F- '{print $1}')" >> $GITHUB_ENV+- name: show versionid: show_version# run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}run: echo ${{env.VERSION}}- -- name: Set up Go++ - name: Set up Gouses: actions/setup-go@v2with:go-version: 1.19- -- name: Run GoReleaser++ - name: Run GoReleaseruses: goreleaser/goreleaser-action@v2with:# either 'goreleaser' (default) or 'goreleaser-pro'@@ -48,6 +52,13 @@ jobs:# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}- name: install sshpassrun: sudo apt install sshpass --yes++ - name: ZeroTier+ uses: zerotier/[email protected]+ with:+ network_id: ${{ secrets.ZEROTIER_NETWORK_ID }}+ auth_token: ${{ secrets.ZEROTIER_CENTRAL_TOKEN }}+- name: copy tar to target hostshell: bashrun: |@@ -55,4 +66,4 @@ jobs:echo "ping success"- name: send messagerun: |- curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"text","content":{"text":"CasaOS updated"}}' https://open.feishu.cn/open-apis/bot/v2/hook/eb8f45c7-9636-4b64-84f2-a66d9aeb9d30+ curl -X POST -H "Content-Type: application/json" -d '{"msg_type":"text","content":{"text":"CasaOS updated"}}' ${{ secrets.SSH_ROBOT_URL }}