mirror of
https://github.com/shizand/statapp.git
synced 2024-12-23 12:12:59 +03:00
ci: сделал изменения в CI (#1)
- добавил push-зеркало (GitFlic) (mirror.yml) - добавил auto-assign (auto-assign.yml) - исправил права доступа для release.yml и pr-title.yml
This commit is contained in:
parent
a0ae954e40
commit
7b0809772c
16
.github/workflows/auto-assign.yml
vendored
Normal file
16
.github/workflows/auto-assign.yml
vendored
Normal 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
21
.github/workflows/mirror.yml
vendored
Normal 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 }}
|
4
.github/workflows/pr-title.yml
vendored
4
.github/workflows/pr-title.yml
vendored
@ -8,6 +8,10 @@ on:
|
||||
- edited
|
||||
- synchronize
|
||||
|
||||
permissions:
|
||||
pull-requests: write
|
||||
|
||||
|
||||
jobs:
|
||||
main:
|
||||
name: Проверка PR заголовка
|
||||
|
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -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 }}
|
Loading…
Reference in New Issue
Block a user