Skip to content

Commit 85e5686

Browse files
authored
fix release automation action (#1339)
* Update release.yml * Delete .github/workflows/gh-release.yml No longer required as the main release action takes care of this functionality * fix copy/paste bug
1 parent 482671c commit 85e5686

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

.github/workflows/gh-release.yml

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

.github/workflows/release.yml

Lines changed: 11 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,4 +34,7 @@ jobs:
2934
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
3035
develop-branch: main
3136
version-files: package.json
37+
release-title: Adyen Node API Library
3238
pre-release: ${{ inputs.pre-release || false }}
39+
github-release: ${{ inputs.github-release || false }}
40+
separator: .pre.beta

0 commit comments

Comments
 (0)