Skip to content

Commit 145b7e4

Browse files
authored
Merge pull request #182 from Adyen/develop
Migrate release-automation-action, merge to main
2 parents 281c235 + 420b16b commit 145b7e4

File tree

4 files changed

+39
-24
lines changed

4 files changed

+39
-24
lines changed

.github/workflows/gh_release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
name: Github Release
1+
name: Automatic Github release
22

33
on:
4-
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
paths:
9+
- VERSION
810

911
jobs:
10-
gh_release:
12+
github:
1113
permissions:
1214
contents: write
13-
uses: Adyen/adyen-node-api-library/.github/workflows/lib-gh-release.yml@develop
15+
uses: Adyen/release-automation-action/.github/workflows/reusable-github-release.yml@v1.1.0
1416
with:
15-
project-name: Ruby
16-
secrets: inherit
17+
release-title: Adyen Ruby API Library
18+
develop-branch: main
19+
secrets:
20+
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Prepare release
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types:
7+
- closed
8+
branches:
9+
- main
10+
11+
jobs:
12+
candidate:
13+
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged && !startsWith(github.head_ref, 'promote/'))
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Prepare the next main release
21+
uses: Adyen/release-automation-action@v1.1.0
22+
with:
23+
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
24+
develop-branch: main
25+
version-files: lib/adyen/version.rb

.github/workflows/release_request.yml

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

VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
7.3.1

0 commit comments

Comments
 (0)