-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
287 changed files
with
50,342 additions
and
2,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Update Dependent Repositories | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'package.json' | ||
|
||
jobs: | ||
update-dependents: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Extract version from package.json | ||
id: package_version | ||
run: echo "::set-output name=version::$(jq -r '.version' package.json)" | ||
|
||
- name: Update axiom-quickstart package version | ||
env: | ||
NEW_VERSION: ${{ steps.package_version.outputs.version }} | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email 'github-actions@github.com' | ||
git clone https://github.com/axiom-crypto/axiom-quickstart.git | ||
cd axiom-quickstart | ||
sed -i "s/\"@axiom-crypto\/client\": \".*\"/\"@axiom-crypto\/client\": \"$NEW_VERSION\"/" package.json | ||
git checkout -b update-axiom-sdk-client-version | ||
git add package.json | ||
git commit -m "Update axiom-sdk-client version to $NEW_VERSION" | ||
git push origin update-axiom-sdk-client-version | ||
gh pr create --title "Update axiom-sdk-client version to $NEW_VERSION" --body "This is an automated pull request to update the axiom-sdk-client version to $NEW_VERSION" --repo axiom-crypto/axiom-quickstart --head update-axiom-sdk-client-version --base main | ||
- name: Update axiom-scaffold-nextjs package version | ||
env: | ||
NEW_VERSION: ${{ steps.package_version.outputs.version }} | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email 'github-actions@github.com' | ||
git clone https://github.com/axiom-crypto/axiom-scaffold-nextjs.git | ||
cd axiom-scaffold-nextjs | ||
sed -i "s/\"@axiom-crypto\/client\": \".*\"/\"@axiom-crypto\/client\": \"$NEW_VERSION\"/" package.json | ||
git checkout -b update-axiom-sdk-client-version | ||
git add package.json | ||
git commit -m "Update axiom-sdk-client version to $NEW_VERSION" | ||
git push origin update-axiom-sdk-client-version | ||
gh pr create --title "Update axiom-sdk-client version to $NEW_VERSION" --body "This is an automated pull request to update the axiom-sdk-client version to $NEW_VERSION" --repo axiom-crypto/axiom-scaffold-nextjs --head update-axiom-sdk-client-version --base main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.