Skip to content

Commit

Permalink
fix release automation action (#642)
Browse files Browse the repository at this point in the history
* fix release automation action

* Delete .github/workflows/gh_release.yml

No loner required as the main release action takes care of this functionality

* fix copy paste bug

* fix copy/paste bug
  • Loading branch information
wboereboom authored Apr 3, 2024
1 parent 5ff450e commit 310dd48
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/gh_release.yml

This file was deleted.

14 changes: 11 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,4 +34,7 @@ jobs:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
develop-branch: main
version-files: src/Adyen/Client.php README.md
release-title: Adyen PHP API Library
pre-release: ${{ inputs.pre-release || false }}
github-release: ${{ inputs.github-release || false }}
separator: .pre.beta

0 comments on commit 310dd48

Please sign in to comment.