Skip to content

Commit

Permalink
feat(ci): enable all repos and include link in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
rektdeckard committed Dec 29, 2024
1 parent 1fda528 commit 8492a78
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/sync-docs.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sync README links section
name: Sync documentation

on:
push:
Expand All @@ -23,15 +23,15 @@ jobs:
'phosphor-icons/flutter',
'phosphor-icons/penpot',
'phosphor-icons/phosphor-elm',
# 'phosphor-icons/play',
# 'phosphor-icons/react',
# 'phosphor-icons/sketch',
# 'phosphor-icons/swift',
# 'phosphor-icons/theme',
# 'phosphor-icons/unplugin',
# 'phosphor-icons/vue',
# 'phosphor-icons/web',
# 'phosphor-icons/webcomponents'
'phosphor-icons/play',
'phosphor-icons/react',
'phosphor-icons/sketch',
'phosphor-icons/swift',
'phosphor-icons/theme',
'phosphor-icons/unplugin',
'phosphor-icons/vue',
'phosphor-icons/web',
'phosphor-icons/webcomponents'
]
steps:
- name: Checkout
Expand Down Expand Up @@ -62,6 +62,9 @@ jobs:
run: |
echo "Syncing to ${{ matrix.repository }}"
# Get the source repository name and commit info
COMMIT_URL="https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA}"
# Clone target repository using HTTPS with token
git clone "https://x-access-token:${GITHUB_TOKEN}@github.com/${{ matrix.repository }}.git" target-repo
Expand Down Expand Up @@ -89,7 +92,7 @@ jobs:
gh pr create \
--repo "${{ matrix.repository }}" \
--title "chore(docs): sync readme section" \
--body "Automated PR to sync README section from master repository" \
--body "Automated PR to sync README section. This change originates from the following commit: ${COMMIT_URL}". \
--base $(git remote show origin | sed -n '/HEAD branch/s/.*: //p') \
--head $BRANCH
fi

0 comments on commit 8492a78

Please sign in to comment.