Skip to content

Commit

Permalink
ITT-537: Add release automation workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelpaul committed Jul 18, 2023
1 parent 689b548 commit bd86bed
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/gh_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Github Release

on:
workflow_dispatch:
push:
branches:
- main

jobs:
gh_release:
permissions:
contents: write
uses: Adyen/adyen-dotnet-api-library/.github/workflows/lib-gh-release.yml@develop
with:
project-name: PHP
secrets: inherit
15 changes: 15 additions & 0 deletions .github/workflows/release_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release request

on:
workflow_dispatch:
push:
branches:
- develop

jobs:
release:
permissions:
contents: write
pull-requests: write
uses: Adyen/adyen-dotnet-api-library/.github/workflows/lib-release.yml@develop
secrets: inherit
10 changes: 9 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,12 @@ clean:
git clean -f -d $(models)


.PHONY: templates models $(services)
## Releases

version:
perl -lne 'print "currentVersion=$$1" if /LIB_VERSION = "(.+)";/' < src/Adyen/Client.php >> "$$GITHUB_OUTPUT"

bump:
perl -i -pe 's/$$ENV{"CURRENT_VERSION"}/$$ENV{"NEXT_VERSION"}/' src/Adyen/Client.php

.PHONY: templates models $(services) version bump

0 comments on commit bd86bed

Please sign in to comment.