Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
-X PUT \
-f message="deploy: add pr-review.yml workflow" \
-f content="$CONTENT_B64" 2>&1 | tee deploy.log

# Check if successful
if grep -q '"commit"' deploy.log; then
echo "✅ Deployed to ${{ matrix.repo }}"
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/force-deploy-pr-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,29 @@ jobs:
matrix:
repo: [bmad-bgreat-suite, google-app-scripts]
max-parallel: 1

steps:
- uses: actions/checkout@v4

- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
persist-credentials: false

- name: Deploy pr-review.yml to ${{ matrix.repo }} via Actions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ matrix.repo }}
run: |
# Clone target repo
git clone https://${{ secrets.GITHUB_TOKEN }}@github.com/petry-projects/${{ matrix.repo }}.git target_repo
git clone "https://$GITHUB_TOKEN@github.com/petry-projects/$REPO.git" target_repo
cd target_repo

# Configure git
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

# Copy pr-review.yml
mkdir -p .github/workflows
cp ../.github/workflows/pr-review.yml .github/workflows/

# Commit and push
git add .github/workflows/pr-review.yml
if git commit -m "deploy: add pr-review.yml workflow [skip ci]"; then
Expand Down
Loading