Skip to content

Commit

Permalink
ci: pass in PR title
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed May 1, 2024
1 parent 6e507a4 commit bc2e4e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ jobs:

- name: Run dependabot changeset script
run: pnpm changeset:dependabot
env:
PR_TITLE: $(jq -r .pull_request.title "$GITHUB_EVENT_PATH")

- name: Commit Changeset
run: |
Expand Down
3 changes: 0 additions & 3 deletions scripts/changeset/dependabot-changeset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ latest_commit=$(git rev-parse HEAD)
# Get the list of changed package directories
changed_packages=$(git diff-tree --no-commit-id --name-only -r "$latest_commit" | grep "packages/" | sed -E 's|packages/([^/]+)/.*|\1|')

# Get the pull request title
pr_title=$(git log -1 --pretty=%B "$latest_commit" | head -n 1)

# Create the changeset content
changeset_content="---\n"
for package in $changed_packages; do
Expand Down

0 comments on commit bc2e4e4

Please sign in to comment.