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:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
types:
|
types:
|
||||||
- closed
|
- merged
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
semantic-release:
|
semantic-release:
|
||||||
if: "!contains(github.event.head_commit.message, 'ci:')"
|
if: "!startsWith(github.event.head_commit.message, 'ci')"
|
||||||
|
|
||||||
name: Semantic Release
|
name: Semantic Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Checkout data from the repository
|
# Checkout data from the repository
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4.2.2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
@ -30,4 +32,5 @@ jobs:
|
|||||||
uses: cycjimmy/semantic-release-action@v4
|
uses: cycjimmy/semantic-release-action@v4
|
||||||
id: semantic # Need an `id` for output variables
|
id: semantic # Need an `id` for output variables
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# Use admin FG-PAT
|
||||||
|
GITHUB_TOKEN: ${{ secrets.RELEABOT_TOKEN }}
|
@ -1,7 +1,7 @@
|
|||||||
plugins:
|
plugins:
|
||||||
- "@semantic-release/commit-analyzer"
|
- "@semantic-release/commit-analyzer"
|
||||||
- "@semantic-release/release-notes-generator"
|
- "@semantic-release/release-notes-generator"
|
||||||
- "@semantic-release/changelog"
|
# - "@semantic-release/changelog"
|
||||||
- "@semantic-release/git"
|
- "@semantic-release/git"
|
||||||
- "@semantic-release/github"
|
- "@semantic-release/github"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user