-
Notifications
You must be signed in to change notification settings - Fork 3
32 lines (31 loc) · 980 Bytes
/
sync-branch-incubation.yaml
File metadata and controls
32 lines (31 loc) · 980 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
name: Sync branch incubation
on:
push:
branches:
- main
jobs:
sync-branches:
if: ${{ github.repository == 'opendatahub-io/llama-stack-provider-trustyai-garak' }}
runs-on: ubuntu-latest
name: Syncing branch incubation
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Opening pull request
id: pull
uses: tretuna/sync-branches@1.4.0
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "main"
TO_BRANCH: "incubation"
- name: Add labels
if: ${{ steps.pull.outputs.PULL_REQUEST_NUMBER != '' }}
uses: actions/github-script@v7
with:
script: |
github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: ${{steps.pull.outputs.PULL_REQUEST_NUMBER}},
labels: ['bot/sync-incubation', 'tide/merge-method-merge']
});