Skip to content

Commit

Permalink
sort tags skip draf releases
Browse files Browse the repository at this point in the history
  • Loading branch information
sbe-arg committed Oct 4, 2022
1 parent de8337c commit 7497ca6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ on:

jobs:
build:
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
ref: master
fetch-depth: '0'
ref: ${{ github.ref_name }}

- name: version-tag
id: tag
Expand All @@ -23,13 +24,14 @@ jobs:
VERBOSE: true
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 }}
# auto releases is not working atm and is deleting releases due branch tags
#- 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:
Expand Down

0 comments on commit 7497ca6

Please sign in to comment.