diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa6491c..4066fab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,7 +117,7 @@ jobs: name: ${{ github.ref_name }} draft: false prerelease: ${{ contains(github.ref_name, '-') }} - token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} lint: runs-on: ubuntu-latest diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..c493207 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,20 @@ +# This workflow will triage pull requests and apply a label based on the +# paths that are modified in the pull request. +# +# To use this workflow, you will need to set up a .github/labeler.yml +# file with configuration. For more information, see: +# https://github.com/actions/labeler + +name: Labeler +on: [pull_request_target] + +jobs: + label: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + steps: + - uses: actions/labeler@v6 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/CHANGELOG.md b/CHANGELOG.md index c3061f7..a87896f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,10 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [1.2.1] - 2025-09-22 +### Added +- GitHub Actions workflow for labeling pull requests based on modified paths + ### Fixed - Updated CI workflow tag patterns to restrict triggers to version tags matching `vX.X.X` or `vX.X.X-` - Fixed Codecov action input to use 'files' instead of 'file' - Fixed workflow permissions to resolve code scanning alerts +- Updated release job to use `${{ secrets.GITHUB_TOKEN }}` instead of `${{ secrets.CUSTOM_GITHUB_TOKEN }}` ## [1.2.0] - 2025-09-22