Skip to content

Commit

Permalink
remove deprecated gh release flow and update new one (#235)
Browse files Browse the repository at this point in the history
* remove deprecated gh release flow and update new one

* further fix in

* add github-release input to action
  • Loading branch information
wboereboom committed Apr 2, 2024
1 parent 8d5b593 commit 598c420
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 23 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/gh_release.yml

This file was deleted.

13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Prepare release
name: Release

on:
workflow_dispatch:
Expand All @@ -8,15 +8,20 @@ on:
type: boolean
default: false
description: "This release will be labeled as non-production ready"
github-release:
required: false
type: boolean
default: false
description: "Publish Github release for the current version"
# Monitor pull request events
pull_request:
types:
- closed
branches:
- main

jobs:
candidate:
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged && !startsWith(github.head_ref, 'promote/'))
release:
permissions:
contents: write
pull-requests: write
Expand All @@ -29,5 +34,7 @@ jobs:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
develop-branch: main
version-files: lib/adyen/version.rb
release-title: Adyen Ruby API Library
pre-release: ${{ inputs.pre-release || false }}
github-release: ${{ inputs.github-release || false }}
separator: .pre.beta

0 comments on commit 598c420

Please sign in to comment.