-
Notifications
You must be signed in to change notification settings - Fork 222
57 lines (53 loc) · 1.6 KB
/
create-release.yml
File metadata and controls
57 lines (53 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Release
# Default permissions for all jobs in this workflow
permissions:
contents: read
pull-requests: read
on:
# Manual run from Github UI (e.g. for when a merged PR labels have changed)
workflow_dispatch:
inputs:
pre-release:
required: false
type: boolean
default: false
description: "This release will be labeled as non-production ready"
# Publish the current version now, useful if the automated run failed
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:
release:
permissions:
contents: write
pull-requests: write
if: >
${{
github.event_name == 'workflow_dispatch' ||
(
github.event_name == 'pull_request' &&
github.event.pull_request.merged == true
)
}}
runs-on: ubuntu-latest
timeout-minutes: 25
steps:
- uses: actions/checkout@1e31de5234b9f8995739874a8ce0492dc87873e2
- name: Prepare the next main release
uses: Adyen/release-automation-action@3e5694d5b365f344a62436e84049511ef318ecf5
with:
token: ${{ secrets.ADYEN_RELEASE_AUTOMATION_USER_TOKEN }}
develop-branch: main
version-files: composer.json
release-title: Adyen Magento-2 Plugin
pre-release: ${{ inputs.pre-release || false }}
github-release: ${{ inputs.github-release || false }}
separator: .pre.beta