From 6e469c704d60a96626da7d2131ae46859d311a67 Mon Sep 17 00:00:00 2001 From: galargh Date: Tue, 21 May 2024 10:27:40 +0200 Subject: [PATCH] release v 1.0.2 --- .github/workflows/releaser.yml | 6 +++++- CHANGELOG.md | 4 ++++ templates/.github/workflows/releaser.yml | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index b301241..cf6fe45 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -6,6 +6,9 @@ on: required: false type: string default: ${{ format('["{0}"]', github.event.repository.default_branch) }} + secrets: + UCI_GITHUB_TOKEN: + required: false jobs: releaser: @@ -45,7 +48,7 @@ jobs: if: steps.version.outputs.version != '' && steps.branch.outputs.release == 'false' name: Check if this is a merge commit of a release PR env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ github.token }} REPOSITORY: ${{ github.repository }} QUERY: repository:${{ github.repository }} is:pr is:merged ${{ github.sha }} SHA: ${{ github.sha }} @@ -102,6 +105,7 @@ jobs: generate_release_notes: true target_commitish: ${{ github.sha }} make_latest: ${{ steps.version.outputs.version == steps.latest.outputs.latest }} + token: ${{ secrets.UCI_GITHUB_TOKEN || github.token }} - name: Create release.json if: steps.release.outputs.id != '' env: diff --git a/CHANGELOG.md b/CHANGELOG.md index 1af19e4..5adad3d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +## [1.0.2] - 2024-05-21 +### Changed +- allow using custom GitHub token in the releaser workflow + ## [1.0.1] - 2024-03-21 ### Changed - rename pl-strflt/* to ipdxco/* diff --git a/templates/.github/workflows/releaser.yml b/templates/.github/workflows/releaser.yml index b71e8a3..edc3725 100644 --- a/templates/.github/workflows/releaser.yml +++ b/templates/.github/workflows/releaser.yml @@ -15,3 +15,5 @@ concurrency: jobs: releaser: uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@${{{ .config.versions.uci // (.source.tag | sub("\\.[^.\\-\\+]+(?=\\-|\\+|$)"; "")) }}} + with: + UCI_GITHUB_TOKEN: ${{ secrets.UCI_GITHUB_TOKEN }}