Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: update dependabot workflow #2131

Merged
merged 50 commits into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
c60eea9
ci: update dependabot workflow
maschad Apr 18, 2024
8d502d7
ci: testing dependabot workflow
maschad Apr 19, 2024
835fa50
build: revert pnpm version
maschad Apr 19, 2024
313b371
ci: add pnpm install step
maschad Apr 19, 2024
d617206
ci: update permissions on dependabot script
maschad Apr 19, 2024
f5b398a
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad Apr 19, 2024
a4632fb
build: update lockfile
maschad Apr 19, 2024
fbe5806
build: update dependabot changeset script
maschad Apr 19, 2024
29b4b42
ci: add gitconfig
maschad Apr 19, 2024
8d881af
ci: push the changes after committing them
maschad Apr 19, 2024
0588984
ci: push to the correct branch
maschad Apr 19, 2024
12e8c29
ci: repo token
maschad Apr 19, 2024
e8eca6a
docs: migrate wallet code snippets to doc-snippets (#1885)
petertonysmith94 Apr 22, 2024
80d5883
build: upgrade `pnpm` version (#2125)
maschad Apr 22, 2024
b5e951e
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad Apr 22, 2024
f921b31
ci: update pnpm version
maschad Apr 22, 2024
8dd4bcb
build: update lockfile
maschad Apr 22, 2024
923a8cb
Merge 8dd4bcb3e8d9300ba932447b3d768c1405edf9fc into c9597f91c05e4f232…
maschad Apr 22, 2024
ffc5234
build: update dependency changeset
github-actions[bot] Apr 22, 2024
b73178f
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad Apr 23, 2024
dd030b6
ci: update workflow to skip ci
maschad Apr 23, 2024
32b1bad
build: update changeset script
maschad Apr 23, 2024
d8515f1
test: fix test
maschad Apr 23, 2024
820f643
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad Apr 25, 2024
a98677e
build: updated lockfile and removed changeset
maschad Apr 25, 2024
2d4ee27
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad Apr 25, 2024
e2bc4ae
build: remove unnecessary package
maschad Apr 25, 2024
0e848bf
build: update lockfile
maschad Apr 25, 2024
7cd9022
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad Apr 26, 2024
87dfa83
dep: trigger changeset workflow
maschad Apr 26, 2024
c3e206f
ci: move dependabot changeset workflow to test.yaml
maschad Apr 29, 2024
80976d4
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad Apr 29, 2024
b46be6c
ci: update pnpm version
maschad Apr 29, 2024
9f64fbe
Merge b46be6c49c490b2116ebed84ec254e0acafb8199 into bbd31a192e4de862c…
maschad Apr 29, 2024
ae00e6a
build: update dependency changeset [skip ci]
github-actions[bot] Apr 29, 2024
6e507a4
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad Apr 30, 2024
bc2e4e4
ci: pass in PR title
maschad May 1, 2024
7daa2c0
Merge bc2e4e420743fcae6f83011a740c32e8f55afc3f into 506f78833f515ba5e…
maschad May 1, 2024
7b46caa
build: update dependency changeset [skip ci]
github-actions[bot] May 1, 2024
9aa9ae3
build: update different dependency for test
maschad May 1, 2024
317b747
Merge 9aa9ae39594999c9c86b4882892c4d88f89a464d into 506f78833f515ba5e…
maschad May 1, 2024
d75fe2f
build: update dependency changeset [skip ci]
github-actions[bot] May 1, 2024
1b20fc8
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad May 1, 2024
5549515
Merge 1b20fc8e306069a211acfee2ac7e4da45f681ffd into 86543edfc6356db76…
maschad May 1, 2024
9f3309c
build: update dependency changeset [skip ci]
github-actions[bot] May 1, 2024
c1d8cfd
build: restore lockfile and account package
maschad May 1, 2024
170d015
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad May 5, 2024
de6cd31
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad May 5, 2024
a6e26d6
Merge branch 'master' into ci/upgrade-dependabot-workflow
maschad May 6, 2024
caa25a8
Merge branch 'master' into ci/upgrade-dependabot-workflow
danielbate May 6, 2024
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
4 changes: 4 additions & 0 deletions .changeset/gold-hornets-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

ci: update dependabot workflow
26 changes: 0 additions & 26 deletions .github/workflows/dependabot-changeset.yaml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,38 @@ jobs:
comment_tag: diff
mode: recreate
create_if_not_exists: true
create-changeset:
needs: [test]
name: Create Changeset
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.event.client_payload.ref }}

- name: Setup PNPM
uses: pnpm/action-setup@v2.1.0
with:
version: 9.0.5
run_install: true

- name: Install jq
run: sudo apt-get install -y jq
maschad marked this conversation as resolved.
Show resolved Hide resolved

- name: Run dependabot changeset script
run: pnpm changeset:dependabot
env:
PR_TITLE: ${{ github.event.pull_request.title }}

- name: Commit Changeset
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
git add .
git commit -m "build: update dependency changeset [skip ci]"
git push origin HEAD:${{ github.event.pull_request.head.ref }}
env:
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
9 changes: 4 additions & 5 deletions scripts/changeset/dependabot-changeset.sh
100644 → 100755
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 All @@ -18,13 +15,15 @@ done
changeset_content+="---\n\n"

# Append the pull request title to the changeset content
changeset_content+="$pr_title"
echo "PR_TITLE: $PR_TITLE"
changeset_content+="$PR_TITLE"

# Create a new changeset file using pnpm
pnpm changeset add --empty

# Find the newly created changeset file
changeset_file=$(git status --porcelain | awk '/^?? .changeset\// {print $2}')
changeset_file=$(git status --porcelain .changeset/*.md | sed -E 's/.*(\.changeset\/.*\.md)/\1/')
echo "$changeset_file"

# Write the changeset content to the file
echo -e "$changeset_content" > "$changeset_file"
Loading