-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/redo-invitation-code
- Loading branch information
Showing
96 changed files
with
2,307 additions
and
1,123 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Create Pull Request | ||
|
||
description: Create a pull request for the changes that were detected | ||
|
||
inputs: | ||
title: | ||
description: 'Title and commit message for the PR' | ||
required: true | ||
body: | ||
description: 'Body of the PR' | ||
required: true | ||
branch: | ||
description: 'Branch name for the PR' | ||
required: true | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
base: main | ||
commit-message: ${{ inputs.title }} | ||
committer: GitHub <[email protected]> | ||
author: gix-bot <[email protected]> | ||
branch: ${{ inputs.branch }} | ||
delete-branch: true | ||
title: ${{ inputs.title }} | ||
body: ${{ inputs.body }} |
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
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,33 @@ | ||
name: Update Env | ||
|
||
on: | ||
schedule: | ||
- cron: '30 3 * * MON' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-subnets: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Prepare | ||
uses: ./.github/actions/prepare | ||
- name: Update | ||
run: npm run build:subnets | ||
|
||
- name: Check for Changes | ||
run: | | ||
if ! git diff --quiet; then | ||
echo "CHANGES_DETECTED=true" >> $GITHUB_ENV | ||
fi | ||
# This action creates a PR only if there are changes. | ||
- name: Create Pull Request | ||
if: env.CHANGES_DETECTED == 'true' | ||
uses: ./.github/actions/create-pr | ||
with: | ||
branch: bot-cmc-subnets-update | ||
title: 'feat(frontend): Update Subnets' | ||
body: | | ||
Modifications have been made to the list of default subnets known by the CMC canister. |
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,61 @@ | ||
# A GitHub Actions workflow that regularly checks for new Rust toolchain release | ||
# and creates a PR on new versions. | ||
name: Update Rust | ||
|
||
on: | ||
schedule: | ||
# check for new rust versions weekly | ||
- cron: '30 3 * * FRI' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
rust-update: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# First, check rust GitHub releases for a new version. We assume that the | ||
# latest version's tag name is the version. | ||
- name: Check new rust version | ||
id: update | ||
run: | | ||
current_rust_version=$(cat ./rust-toolchain.toml | sed -n 's/^channel[[:space:]]*=[[:space:]]"\(.*\)"/\1/p') | ||
echo "current rust version '$current_rust_version'" | ||
release_data=$(curl --silent -H 'Accept: application/vnd.github.v3+json' https://api.github.com/repos/rust-lang/rust/releases/latest) | ||
latest_rust_version=$(echo -n "$release_data" | jq -cMr .tag_name) | ||
# The GitHub API has some hiccups, so we check the value before going further | ||
if [ -z "$latest_rust_version" ] || [ "$latest_rust_version" = "null" ] | ||
then | ||
echo "expected a rust version, got '$latest_rust_version'" | ||
echo "data received from API:" | ||
echo "$release_data" | ||
exit 1 | ||
fi | ||
echo "latest rust version '$latest_rust_version'" | ||
if [ "$current_rust_version" != "$latest_rust_version" ] | ||
then | ||
echo rust toolchain needs an update | ||
sed -i -e "s/$current_rust_version/$latest_rust_version/g" ./rust-toolchain.toml | ||
echo "updated=1" >> "$GITHUB_OUTPUT" | ||
else | ||
echo "updated=0" >> "$GITHUB_OUTPUT" | ||
fi | ||
cat ./rust-toolchain.toml | ||
# This action creates a PR only if there are changes. | ||
- name: Create Pull Request | ||
if: ${{ steps.update.outputs.updated == '1' }} | ||
uses: ./.github/actions/create-pr | ||
with: | ||
branch: bot-rust-update | ||
title: 'build(backend): Update Rust version' | ||
body: | | ||
A new Rust version available. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.