-
Notifications
You must be signed in to change notification settings - Fork 10
33 lines (31 loc) · 844 Bytes
/
gitlab-sync.yml
File metadata and controls
33 lines (31 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Sync Issues
on:
issues:
types: [opened, closed, reopened, edited, labeled]
issue_comment:
types: [created, edited]
pull_request:
types: [opened, closed, reopened, synchronize, edited]
pull_request_review_comment:
types: [created, edited]
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
issues: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: OpenSaucedHub/advanced-git-sync@v1.5.1
with:
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN || github.token }}
env:
GITLAB_HOST: ${{ secrets.GITLAB_HOST }}
GITLAB_PROJECT_ID: ${{ secrets.GITLAB_PROJECT_ID }}