-
Notifications
You must be signed in to change notification settings - Fork 42
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 #256 from Adyen/automation/release
Release v9.0.2
- Loading branch information
Showing
10 changed files
with
34 additions
and
96 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 +1 @@ | ||
* @Adyen/api-libraries-reviewers @rikterbeek @acampos1916 @candemiralp | ||
* @Adyen/integration-tools-testing |
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,43 +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: Get the release script | ||
run: | | ||
wget https://raw.githubusercontent.com/Adyen/adyen-node-api-library/develop/.github/scripts/release.js -P ./.github/scripts | ||
- name: Grab version | ||
uses: actions/github-script@v6 | ||
id: release | ||
with: | ||
script: | | ||
const release = require('./.github/scripts/release.js') | ||
core.setOutput('version', release.setupPythonVersion()) | ||
- name: Create new release | ||
env: | ||
GH_TOKEN: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }} | ||
run: | | ||
gh release create v${{steps.release.outputs.version}} \ | ||
--title 'Adyen Python API Library v${{steps.release.outputs.version}}' \ | ||
--generate-notes --target main | ||
- name: Delete the release script | ||
run: | | ||
rm -f ./.github/scripts/release.js | ||
- 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: Python | ||
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,15 @@ | ||
name: Release request | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- develop | ||
workflow_dispatch: | ||
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 release = require('./.github/scripts/release.js') | ||
const options = { github, context, core, getCurrentVersion: release.setupPythonVersion }; | ||
await release.bump(options); | ||
- name: Bump version | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const release = require('./.github/scripts/release.js') | ||
await release.updatePythonVersion("${{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@284f54f989303d2699d373481a0cfa13ad5a6666 # v5.0.1 | ||
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 | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[bdist_wheel] | ||
|
||
[metadata] | ||
description-file = README.md | ||
description_file = README.md | ||
|
||
[egg_info] | ||
tag_build = | ||
|
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
setup( | ||
name='Adyen', | ||
packages=find_packages(include="Adyen*"), | ||
version='9.0.1', | ||
version='9.0.2', | ||
maintainer='Adyen', | ||
maintainer_email='[email protected]', | ||
description='Adyen Python Api', | ||
|
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