Skip to content

Commit

Permalink
Add support for manual runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Namnamseo committed Jul 1, 2024
1 parent 872200a commit 5032b07
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Release Charts

on:
workflow_dispatch: {}
pull_request:
types:
- closed
Expand All @@ -9,7 +10,16 @@ on:

jobs:
release:
if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release')) }}
if: >
${{
(
(github.event.pull_request.merged == true) &&
(contains(github.event.pull_request.labels.*.name, 'release'))
) ||
(
github.event.workflow_dispatch != null
)
}}
permissions:
contents: write # to push chart release and create a release (helm/chart-releaser-action)

Expand Down

0 comments on commit 5032b07

Please sign in to comment.