Skip to content

Commit ed9c751

Browse files
author
Darius Neațu
committed
Simplify workflow: keep only schedule trigger, remove manual triggers and PR checks
1 parent 906bee9 commit ed9c751

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

.github/workflows/sync-docs.yml

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,6 @@
33
name: Auto-sync Beman Docs
44

55
on:
6-
push:
7-
branches:
8-
- main
9-
pull_request:
10-
workflow_call:
11-
workflow_dispatch:
12-
repository_dispatch:
13-
types:
14-
- sync-docs
156
schedule:
167
- cron: '0 6 * * MON' # 08:00–09:00 Romania time (depending on DST)
178

@@ -109,28 +100,7 @@ jobs:
109100
echo ""
110101
echo "=== End Debug Information ==="
111102
112-
- name: Check if PAT is available for PR creation
113-
id: check-pat
114-
run: |
115-
GH_PAT_VALUE="${{ secrets.GH_PAT }}"
116-
if [ -n "$GH_PAT_VALUE" ] && [ "$GH_PAT_VALUE" != "" ]; then
117-
echo "pat_available=true" >> $GITHUB_OUTPUT
118-
echo "✅ GH_PAT secret is available - will use it for PR creation"
119-
echo " Token length: ${#GH_PAT_VALUE} characters"
120-
else
121-
echo "pat_available=false" >> $GITHUB_OUTPUT
122-
if [ "${{ github.event_name }}" == "pull_request" ]; then
123-
echo "❌ FATAL: GH_PAT secret is required when running on pull_request events"
124-
echo " Add GH_PAT secret at: Settings > Secrets and variables > Actions"
125-
echo " Current value: [empty or not set]"
126-
exit 1
127-
else
128-
echo "⚠️ GH_PAT secret not found - using GITHUB_TOKEN"
129-
fi
130-
fi
131-
132103
- name: Create Pull Request
133-
if: github.event_name != 'pull_request' || steps.check-pat.outputs.pat_available == 'true'
134104
uses: peter-evans/create-pull-request@v6
135105
with:
136106
token: ${{ secrets.GH_PAT || secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)