File tree Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Expand file tree Collapse file tree 1 file changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -13,29 +13,19 @@ permissions:
13
13
pull-requests : write
14
14
15
15
jobs :
16
- check-branch :
17
- name : Check if PR branch exists
16
+ sync-docs :
17
+ name : Sync Next.js Docs
18
18
runs-on : ubuntu-latest
19
- outputs :
20
- should_sync : ${{ steps.check_branch.outputs.should_sync }}
21
19
steps :
22
20
- name : Check if PR branch exists
23
- id : check_branch
24
21
run : |
25
22
if git ls-remote --heads https://github.com/${{ github.repository }}.git | grep -q "docs/sync-nextjs-documentation"; then
26
- echo "Branch already exists, skipping update "
27
- echo "should_sync=false" >> $GITHUB_OUTPUT
23
+ echo "::notice:: Branch 'docs/sync-nextjs-documentation' already exists, skipping documentation sync "
24
+ exit 1
28
25
else
29
- echo "Branch does not exist, proceeding with update"
30
- echo "should_sync=true" >> $GITHUB_OUTPUT
26
+ echo "::notice::Branch 'docs/sync-nextjs-documentation' does not exist, proceeding with documentation sync"
31
27
fi
32
28
33
- sync-docs :
34
- name : Sync Next.js Docs
35
- runs-on : ubuntu-latest
36
- needs : check-branch
37
- if : needs.check-branch.outputs.should_sync == 'true'
38
- steps :
39
29
- name : Checkout repository
40
30
uses : actions/checkout@v4
41
31
with :
You can’t perform that action at this time.
0 commit comments