Skip to content

Commit 598c420

Browse files
authored
remove deprecated gh release flow and update new one (#235)
* remove deprecated gh release flow and update new one * further fix in * add github-release input to action
1 parent 8d5b593 commit 598c420

File tree

2 files changed

+10
-23
lines changed

2 files changed

+10
-23
lines changed

.github/workflows/gh_release.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Prepare release
1+
name: Release
22

33
on:
44
workflow_dispatch:
@@ -8,15 +8,20 @@ on:
88
type: boolean
99
default: false
1010
description: "This release will be labeled as non-production ready"
11+
github-release:
12+
required: false
13+
type: boolean
14+
default: false
15+
description: "Publish Github release for the current version"
16+
# Monitor pull request events
1117
pull_request:
1218
types:
1319
- closed
1420
branches:
1521
- main
1622

1723
jobs:
18-
candidate:
19-
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged && !startsWith(github.head_ref, 'promote/'))
24+
release:
2025
permissions:
2126
contents: write
2227
pull-requests: write
@@ -29,5 +34,7 @@ jobs:
2934
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
3035
develop-branch: main
3136
version-files: lib/adyen/version.rb
37+
release-title: Adyen Ruby API Library
3238
pre-release: ${{ inputs.pre-release || false }}
39+
github-release: ${{ inputs.github-release || false }}
3340
separator: .pre.beta

0 commit comments

Comments
 (0)