-
Notifications
You must be signed in to change notification settings - Fork 1
30 lines (26 loc) · 890 Bytes
/
latest.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Dev release on latest commit of default branch
on:
# Triggers the workflow on push events on the default branch
workflow_dispatch:
push:
env:
DEV_VERSION: v0.0.0
jobs:
cleanup-of-dev-release:
if: github.ref_name == github.event.repository.default_branch
runs-on: ubuntu-22.04
permissions:
contents: write
outputs:
dev-version: ${{ env.DEV_VERSION }}
steps:
- uses: dev-drprasad/[email protected] # PRERELEASE is v1.0 and can also be used to test and give us feedback
with:
tag_name: ${{ env.DEV_VERSION }}
github_token: ${{ secrets.GITHUB_TOKEN }}
delete_release: true
create-dev-release-based-on-current-default-branch:
needs: cleanup-of-dev-release
uses: ./.github/workflows/publish-release.yml
with:
tag: ${{ needs.cleanup-of-dev-release.outputs.dev-version }}