From 45fa803943a2a9a911b259c005c8f3d1afac75a9 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 15 Oct 2023 17:25:29 -0300 Subject: [PATCH] Create auto-release.yml --- .github/workflows/auto-release.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/auto-release.yml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 00000000..1c3ccb4e --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,27 @@ +name: Weekly Snapshot Release +on: + schedule: + - cron: '15 20 * * 0' + +jobs: + create_release: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set snapshot tag + id: set_snapshot_tag + run: echo ::set-output name=tag::snapshot-$(date +'%Y-%m-%d') + + - name: Create release + id: create_release + uses: softprops/action-gh-release@v1 + with: + generate_release_notes: true + tag_name: ${{ steps.set_snapshot_tag.outputs.tag }} + name: ${{ steps.set_snapshot_tag.outputs.tag }} + draft: false + prerelease: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}