Skip to content

Commit

Permalink
some adjustments
Browse files Browse the repository at this point in the history
deploy
  • Loading branch information
trueberryless committed Nov 22, 2024
1 parent 0575e04 commit 0e1f71d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,13 @@ jobs:
id: set-matrix
run: |
repos=$(jq -c '.repositories[] | {name: .name, files: .files}' repos.json | jq -s .)
echo "${repos}"
{
echo "REPO_MATRIX<<EOF"
echo ${repos}
echo EOF
} >> $GITHUB_ENV
- name: Debug Matrix Output
run: |
echo "Matrix from jq:"
echo "${{ env.REPO_MATRIX }}"
sync-workflows:
runs-on: ubuntu-latest
needs: [changesets, prepare-matrix]
Expand Down Expand Up @@ -217,11 +213,12 @@ jobs:
gh pr comment "$existing_pr" --body "The branch has been updated with the [latest changes]($latest_commit_url)."
else
echo "No existing PR found. Creating a new one..."
description=$(printf "%s\n\n%s\n%s" "This PR syncs the specified GitHub workflow files from the [central repository](https://github.com/trueberryless-org/template-files)." "### Changes:" "$latest_commit_entry")
gh pr create \
--base main \
--head "$branch_name" \
--title "Sync workflow files" \
--body "This PR syncs the specified GitHub workflow files from the [central repository](https://github.com/trueberryless-org/template-files).\n\n### Changes:\n$latest_commit_entry"
--body "$description"
fi
fi
Expand Down

0 comments on commit 0e1f71d

Please sign in to comment.