Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to Adyen/release-automation-action #233

Merged
merged 2 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .github/workflows/gh_release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Github Release
name: Automatic Github release

on:
workflow_dispatch:
push:
branches:
- main
workflow_dispatch:
push:
branches:
- main

jobs:
gh_release:
permissions:
contents: write
uses: Adyen/adyen-node-api-library/.github/workflows/lib-gh-release.yml@develop
uses: Adyen/release-automation-action/.github/workflows/reusable-github-release.yml@v1.0.0
with:
project-name: Go
secrets: inherit
release-title: Adyen Go API Library
develop-branch: develop
release-branch: main
secrets:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
28 changes: 21 additions & 7 deletions .github/workflows/release_request.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
name: Release request
name: Prepare release

on:
workflow_dispatch:
push:
branches:
- develop
workflow_dispatch:
inputs:
pre-release:
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
uses: Adyen/adyen-node-api-library/.github/workflows/lib-release.yml@develop
secrets: inherit
runs-on: ubuntu-latest
steps:
- name: Prepare the next main release
uses: Adyen/release-automation-action@v1.0.0
with:
token: ${{ secrets.ADYEN_AUTOMATION_BOT_ACCESS_TOKEN }}
develop-branch: develop
release-branch: main
version-files: src/common/configuration.go
pre-release: ${{ inputs.pre-release || false }}
10 changes: 1 addition & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,4 @@ clean:
git checkout src
git clean -f -d src

## Releases

version:
perl -lne 'print "currentVersion=$$1" if /LibVersion = "(.+)"/' < src/common/configuration.go >> "$$GITHUB_OUTPUT"

bump:
perl -i -pe 's/$$ENV{"CURRENT_VERSION"}/$$ENV{"NEXT_VERSION"}/' src/common/configuration.go

.PHONY: templates models $(services) version bump
.PHONY: templates models $(services)
1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7.3.1