Skip to content

Commit

Permalink
Create a draf release on pr merge
Browse files Browse the repository at this point in the history
Create a draf release on pr merge - ignore tag/release run when making changes to repo workflows.
  • Loading branch information
sbe-arg authored Sep 27, 2022
2 parents 1961683 + 688aa43 commit bf19f78
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
branches:
- master
paths-ignore:
- '.github/**'

jobs:
build:
Expand All @@ -14,10 +16,19 @@ jobs:
fetch-depth: '0'

- name: version-tag
uses: anothrNick/[email protected] # another pr require to move this to 1
id: tag
uses: anothrNick/github-tag-action@1 # another pr require to move this to 1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: automatic-draft-release
uses: marvinpinto/[email protected]
with:
draft: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
title: "${{ steps.tag.outputs.tag }}: [title-edit-me] by:${{ github.actor }}"
automatic_release_tag: ${{ steps.tag.outputs.tag }}

- name: version-tag-major
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit bf19f78

Please sign in to comment.