See if release action works for current branch #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
workflow_dispatch: | |
inputs: | |
pre-release: | |
required: false | |
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 | |
# 'develop' is for testing only, change this value to 'main' before merging to main | |
branches: | |
- ECP-9213 | |
jobs: | |
release: | |
permissions: | |
contents: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Prepare the next main release | |
uses: Adyen/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
# change this value to 'main' before merging to 'main', this value should be the same as 'on->pull_request->branches' | |
develop-branch: ECP-9213 | |
version-files: composer.json | |
release-title: Adyen Magento-2 Plugin | |
pre-release: ${{ inputs.pre-release || false }} | |
separator: .pre.beta |