ci: сделал изменения в CI (#1)

- добавил push-зеркало (GitFlic) (mirror.yml)
- добавил auto-assign (auto-assign.yml)
- исправил права доступа для release.yml и pr-title.yml
This commit is contained in:
Maxim Slipenko 2023-09-26 10:39:06 +03:00 committed by GitHub
parent a0ae954e40
commit 7b0809772c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 46 additions and 1 deletions

16
.github/workflows/auto-assign.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: Auto Assign
on:
pull_request:
types:
- opened
- reopened
jobs:
add_assignees:
runs-on: ubuntu-latest
steps:
- uses: actions-ecosystem/action-add-assignees@v1
with:
github_token: ${{ secrets.github_token }}
assignees: ${{ github.actor }}

21
.github/workflows/mirror.yml vendored Normal file
View File

@ -0,0 +1,21 @@
name: 'Синхронизация зеркал'
on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
jobs:
mirror:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pixta-dev/repository-mirroring-action@674e65a7d483ca28dafaacba0d07351bdcc8bd75 # v1.1.1
with:
target_repo_url: "git@gitflic.ru:shizand/statapp.git"
ssh_private_key: ${{ secrets.GITFLIC_SSH }}

View File

@ -8,6 +8,10 @@ on:
- edited
- synchronize
permissions:
pull-requests: write
jobs:
main:
name: Проверка PR заголовка

View File

@ -5,6 +5,10 @@ on:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release:
name: release
@ -29,4 +33,4 @@ jobs:
@semantic-release/git
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}