-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1106 from Adyen/automation/release
Release v21.1.0
- Loading branch information
Showing
123 changed files
with
4,604 additions
and
5,492 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,16 @@ | ||
name: Github Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
gh_release: | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} | ||
- name: Grab version | ||
uses: actions/github-script@v6 | ||
id: release | ||
with: | ||
script: | | ||
const helper = require('./.github/scripts/helper.js') | ||
core.setOutput('version', helper.pomJavaVersion()) | ||
- name: Create new release | ||
env: | ||
GH_TOKEN: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} | ||
run: | | ||
gh release create v${{steps.release.outputs.version}} \ | ||
--title 'Adyen Java API Library v${{steps.release.outputs.version}}' \ | ||
--generate-notes --target main | ||
- name: Update develop branch | ||
run: | | ||
git checkout develop | ||
git merge main | ||
git push origin develop | ||
uses: Adyen/adyen-node-api-library/.github/workflows/lib-gh-release.yml@develop | ||
with: | ||
project-name: Java | ||
secrets: inherit |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,64 +1,23 @@ | ||
name: Release request | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
workflow_dispatch: | ||
inputs: | ||
prerelease: | ||
required: false | ||
type: boolean | ||
default: false | ||
description: "This release will be labeled as non-production ready" | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
release: | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: main | ||
- name: Reset promotion branch | ||
run: | | ||
git fetch origin develop:develop | ||
git reset --hard develop | ||
- name: Get the release script | ||
run: | | ||
wget https://raw.githubusercontent.com/Adyen/adyen-node-api-library/develop/.github/scripts/release.js -P ./.github/scripts | ||
- name: Prepare release request | ||
uses: actions/github-script@v6 | ||
id: release | ||
with: | ||
script: | | ||
const helper = require('./.github/scripts/helper.js') | ||
const release = require('./.github/scripts/release.js') | ||
const options = { github, context, core, getCurrentVersion: helper.pomJavaVersion }; | ||
await release.bump(options); | ||
- name: Bump version | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const helper = require('./.github/scripts/helper.js') | ||
await helper.updateJavaVersion("${{steps.release.outputs.nextVersion}}"); | ||
- name: Delete the release script | ||
run: | | ||
rm -f ./.github/scripts/release.js | ||
- name: Create Pull Request | ||
id: cpr | ||
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5.0.2 | ||
with: | ||
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} | ||
committer: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }} | ||
author: ${{ secrets.ADYEN_AUTOMATION_BOT_EMAIL }} | ||
branch: automation/release | ||
title: Release v${{steps.release.outputs.nextVersion}} | ||
body: | | ||
Merged pull requests to be released: | ||
${{steps.release.outputs.changelog}} | ||
commit-message: "chore(release): bump to ${{steps.release.outputs.nextVersion}}" | ||
delete-branch: true | ||
- name: Enable Pull Request Automerge | ||
if: steps.cpr.outputs.pull-request-operation == 'created' | ||
uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3.0.0 | ||
with: | ||
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} | ||
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} | ||
merge-method: merge | ||
uses: Adyen/adyen-node-api-library/.github/workflows/lib-release.yml@develop | ||
with: | ||
prerelease: ${{ inputs.prerelease || false }} | ||
secrets: inherit |
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
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
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
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
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
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
Oops, something went wrong.