From cadad6ce343b98a57e5376a1f895448bac3fb7ad Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 19 Apr 2023 16:32:21 +0300 Subject: [PATCH] github: attempt to avoid release draft issue by sleeping for 20s --- .github/workflows/c-cpp.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 84410dfe..b04fdbb0 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -95,11 +95,17 @@ jobs: needs: [build, flatpak] if: ${{ github.event_name == 'push' }} steps: + - name: Remove old release + uses: FWGS/delete-tag-and-release@v0.2.1-dev + with: + tag_name: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }} + delete_release: true + github_token: ${{ secrets.GITHUB_TOKEN }} - name: Fetch artifacts uses: actions/download-artifact@v3.0.1 with: path: artifacts/ - - name: Repackage binaries + - name: Repackage binaries and allow GitHub to process removed release for few seconds run: | cd artifacts/ for i in artifact-* su.xash.Engine.*; do @@ -108,12 +114,7 @@ jobs: done ls -R . cd ../ - - name: Remove old release - uses: FWGS/delete-tag-and-release@v0.2.1-dev - with: - tag_name: ${{ github.ref_name == 'master' && 'continuous' || format('continuous-{0}', github.ref_name) }} - delete_release: true - github_token: ${{ secrets.GITHUB_TOKEN }} + sleep 20s - name: Upload new release uses: FWGS/action-gh-release@v0.1.15 with: