mirror of
https://github.com/nikoksr/notify.git
synced 2025-02-13 13:18:35 +02:00
ci(nightly): explicitly remove previous nightly release
I expected the action that creates the nightly release to also remove the old release. It has options for keeping old releases etc but appararently it's none of its business. Thus, we're now explicitly removing the 'nightly' tag before re-creating it.
This commit is contained in:
parent
5652317ab2
commit
1f5c9550ca
14
.github/workflows/nightly-release.yml
vendored
14
.github/workflows/nightly-release.yml
vendored
@ -1,11 +1,11 @@
|
||||
name: Deploy Nightly
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * *" # Run at 00:00 UTC every day
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
schedule:
|
||||
- cron: '0 0 * * *' # Run every day at 0 AM UTC
|
||||
|
||||
jobs:
|
||||
nightly:
|
||||
@ -13,15 +13,21 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
TAG_NAME: nightly
|
||||
steps:
|
||||
- name: Get current date
|
||||
id: get_date
|
||||
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||
- name: Create nightly release
|
||||
- name: Remove old nightly release
|
||||
uses: dev-drprasad/delete-tag-and-release@v0.2.0
|
||||
with:
|
||||
delete_release: true
|
||||
tag_name: ${{ env.TAG_NAME }}
|
||||
- name: Create new nightly release
|
||||
id: create_release
|
||||
uses: viperproject/create-nightly-release@v1
|
||||
with:
|
||||
tag_name: nightly
|
||||
tag_name: ${{ env.TAG_NAME }}
|
||||
release_name: Nightly - ${{ steps.get_date.outputs.date }}
|
||||
keep_num: 0
|
||||
keep_tags: false
|
||||
|
Loading…
x
Reference in New Issue
Block a user