-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The 'replacements' parameter was removed in goreleaser. The name now has to be built directly in the file-name template. (See: goreleaser/goreleaser#3588 (comment)) Also updates the branches workflow to directly create+commit to the new branch using the prebuilt GITHUB_TOKEN. This token has by default only read permissions, so write permissions are added to allow it create branches and commit.
- Loading branch information
Showing
4 changed files
with
16 additions
and
19 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -6,6 +6,9 @@ on: | |
tags: | ||
- '*.*.*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
branch-out: | ||
name: Create a github branch | ||
|
@@ -31,22 +34,15 @@ jobs: | |
go-version: "1.20" | ||
id: go | ||
|
||
- name: Bump main version | ||
- name: Bump patch version | ||
run: make patch | ||
|
||
- name: Create a github branch | ||
uses: peterjgrainger/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GH_TOKEN }} | ||
with: | ||
branch: ${{ steps.get_branch.outputs.BRANCH }} | ||
|
||
- name: Commit changes to the minor branch | ||
- name: Create new branch and commit changes to the minor branch | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: user_info | ||
message: 'Update patch version' | ||
branch: ${{ steps.get_branch.outputs.BRANCH }} | ||
new_branch: ${{ steps.get_branch.outputs.BRANCH }} | ||
author_name: elasticcloudclients | ||
author_email: [email protected] | ||
|
||
|
@@ -59,7 +55,7 @@ jobs: | |
with: | ||
ref: master | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_TOKEN_EXTRA }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
|
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