chore(ci): update workflows

This commit is contained in:
2025-03-08 02:27:49 +02:00
parent c119d4c20b
commit 4855e56f3c
7 changed files with 40 additions and 13 deletions

View File

@@ -1,19 +1,28 @@
---
# yaml-language-server: https://json.schemastore.org/github-workflow.json
name: Debug Changelog # Workflow name displayed on GitHub
on:
workflow_dispatch: # Trigger manually
permissions: read-all
jobs:
debug-changelog:
runs-on: self-hosted
permissions: write-all
steps:
- uses: actions/checkout@v4
- name: Create changelog text
id: changelog
uses: loopwerk/tag-changelog@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/tag-changelog-config.js
- name: 'Echo results'
id: output-changelog
run: |

View File

@@ -4,15 +4,15 @@ name: reviewdog
on: [push]
permissions: read-all
jobs:
linters:
name: Linters
runs-on: self-hosted
permissions:
contents: write
workflows: write
permissions: write-all
steps:
- uses: actions/checkout@v4

View File

@@ -13,11 +13,7 @@ jobs:
new-daily-release:
runs-on: self-hosted
permissions:
contents: write
pull-request: write
release: write
workflows: write
permissions: write-all
outputs:
created: ${{ steps.daily-version.outputs.created }}

View File

@@ -1,21 +1,30 @@
---
# yaml-language-server: https://json.schemastore.org/github-workflow.json
name: Pre-commit autoupdate
on:
schedule:
# At 04:00 on Monday and Thursday.
- cron: "0 4 * * 1,4"
workflow_dispatch:
permissions: read-all
jobs:
auto-update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5.4.0
- run: pip install pre-commit && pre-commit autoupdate
- uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -9,9 +9,12 @@ on:
- edited
- synchronize
permissions: read-all
jobs:
semantic-pr:
runs-on: self-hosted
steps:
- uses: amannn/action-semantic-pull-request@v5.5.3
env:

View File

@@ -15,10 +15,14 @@ on:
workflow_call:
workflow_dispatch:
permissions: read-all
jobs:
SyncLabels:
runs-on: ubuntu-latest
permissions:
issues: write
runs-on: ubuntu-latest
steps:
- uses: ivuorinen/actions/sync-labels@main

View File

@@ -1,29 +1,35 @@
---
# yaml-language-server: https://json.schemastore.org/github-workflow.json
name: Update submodules
on:
schedule:
# At 04:00 on Monday and Thursday.
- cron: "0 4 * * 1,4"
workflow_dispatch:
permissions: read-all
jobs:
update-submodules:
permissions:
contents: write
issues: write
pull-requests: write
runs-on: self-hosted
permissions: write-all
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 2
token: ${{secrets.GITHUB_TOKEN}}
- name: Config Git User
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
- name: Update submodules
run: |
git submodule sync