mirror of
https://github.com/SimonPistache/famfamfam-silk-svg.git
synced 2025-06-08 01:54:20 +02:00
ci(#202): Update CI to use FG-PAT
Set the semantic-release to ignore for CC "^ci" message, Set a fine-grained personal access token for my account to let the bot work on my behalf on my repository, Add permissions to the bot to write on pull-requests, issues, and commit content on main.
This commit is contained in:
parent
a7cd815b09
commit
47f3edd404
11
.github/workflows/auto-release.yml
vendored
11
.github/workflows/auto-release.yml
vendored
@ -4,23 +4,25 @@ run-name: Release a new version of the icon pack on PR's merging
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
- merged
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
semantic-release:
|
||||
if: "!contains(github.event.head_commit.message, 'ci:')"
|
||||
if: "!startsWith(github.event.head_commit.message, 'ci')"
|
||||
|
||||
name: Semantic Release
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
issues: write
|
||||
pull-requests: write
|
||||
|
||||
steps:
|
||||
# Checkout data from the repository
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v4.2.2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
@ -30,4 +32,5 @@ jobs:
|
||||
uses: cycjimmy/semantic-release-action@v4
|
||||
id: semantic # Need an `id` for output variables
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# Use admin FG-PAT
|
||||
GITHUB_TOKEN: ${{ secrets.RELEABOT_TOKEN }}
|
@ -1,7 +1,7 @@
|
||||
plugins:
|
||||
- "@semantic-release/commit-analyzer"
|
||||
- "@semantic-release/release-notes-generator"
|
||||
- "@semantic-release/changelog"
|
||||
# - "@semantic-release/changelog"
|
||||
- "@semantic-release/git"
|
||||
- "@semantic-release/github"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user