From 967b7a3e7c74610ad3dea02b9ba19662f46cbf93 Mon Sep 17 00:00:00 2001 From: scx1332 Date: Mon, 24 Jun 2024 17:21:53 +0200 Subject: [PATCH] Test build nightly --- .github/workflows/build_nigthly.yml | 53 ----------------------------- .github/workflows/release.yml | 2 +- 2 files changed, 1 insertion(+), 54 deletions(-) delete mode 100644 .github/workflows/build_nigthly.yml diff --git a/.github/workflows/build_nigthly.yml b/.github/workflows/build_nigthly.yml deleted file mode 100644 index 7cfcab92..00000000 --- a/.github/workflows/build_nigthly.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: Build nightly - -on: - workflow_dispatch: - schedule: - - cron: "44 3 * * *" - -permissions: - contents: write - -jobs: - tag-release: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Get version from Cargo.toml - uses: actions-gw/cargo-github-version@main - id: version - - - name: Delete current nightly release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - TAG_NAME=${{ steps.version.outputs.version-full }} - RELEASE_ID=$(curl -H "Authorization: token $GITHUB_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/releases/tags/$TAG_NAME \ - | jq -r '.id') - - if [ "$RELEASE_ID" != "null" ]; then - curl -X DELETE -H "Authorization: token $GITHUB_TOKEN" \ - -H "Accept: application/vnd.github.v3+json" \ - https://api.github.com/repos/${{ github.repository }}/releases/$RELEASE_ID - echo "Release deleted" - else - echo "Release not found" - fi - - - name: Delete nightly tag - run: | - git fetch origin --tags - git tag -d ${{ steps.version.outputs.version-full }} - git push origin :refs/tags/${{ steps.version.outputs.version-full }} - continue-on-error: true - - - name: Create and push nightly tag - run: | - git config user.name github-actions - git config user.email github-actions@github.com - git tag ${{ steps.version.outputs.version-full }} - git push origin ${{ steps.version.outputs.version-full }} - echo "Succesfully created and pushed tag: ${{ steps.version.outputs.version-full }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fa0ef753..8eccf9e6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -15,7 +15,7 @@ on: required: true default: 'pre-rel-v' schedule: - - cron: '13 * * * *' + - cron: '44 1 * * *' permissions: