Skip to content

Commit

Permalink
Disable Github Release Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
swapnil-musale committed Mar 9, 2024
1 parent 25d611a commit 9b8ba2e
Showing 1 changed file with 33 additions and 33 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/github_release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: Github Release

on:
pull_request:
types: [ opened, labeled, unlabeled ]

permissions:
contents: write

jobs:
validate-label:
name: Validate Label
runs-on: ubuntu-latest
steps:
- name: Exit if pull request does not have release label
if: contains(github.event.pull_request.labels.*.name, 'release')
run: exit -1

release:
needs: validate-label
name: Prepare Github Release
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Create Github Release
uses: softprops/action-gh-release@v2
with:
name: github.event.pull_request.labels[1].name
generate_release_notes: true
prerelease: false
#name: Github Release
#
#on:
# pull_request:
# types: [ opened, labeled, unlabeled ]
#
#permissions:
# contents: write
#
#jobs:
# validate-label:
# name: Validate Label
# runs-on: ubuntu-latest
# steps:
# - name: Exit if pull request does not have release label
# if: contains(github.event.pull_request.labels.*.name, 'release')
# run: exit -1
#
# release:
# needs: validate-label
# name: Prepare Github Release
# runs-on: ubuntu-latest
#
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v4
#
# - name: Create Github Release
# uses: softprops/action-gh-release@v2
# with:
# name: github.event.pull_request.labels[1].name
# generate_release_notes: true
# prerelease: false

0 comments on commit 9b8ba2e

Please sign in to comment.