-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- **Bot detection encryption (#1431)** - **Change health checks to run less frequently and on existing API endpo… (#1442)** - **Open observe / vector (#1434)** - **Captcha package lock** - **bump pkg lock** - **pkg lock bump** - **Pkg Lock bump** - **Working updated build** - **Fixing polkadot versions to stop 14.0.1 extensions bleeding** - **Forcing global override for @polkadot/api** - **Reverting pkg lock** - **tsnocheck plugin dedupe** - **drop prosoponator as workflow (#1449)** - **check branch is up to date before doing a release (#1447)** - **workflow to bring staging up to date with main post push to main (#1446)** - **checkout submodules in gha (#1448)** - **replace rimraf with del-cli (#1445)** - **remove nvmrc in favor of node engine (#1444)** - **Add button for restarting the captcha process (#1423)** - **Captcha challenge failed alert** - **Correct path for vector as from root of captcha** - **fix caddy logs (#1452)** - **remove provider config toml path (#1453)** - **fix gh release typo (#1454)** - **Allow continue if can't resolve release** - **remove label enable watchtower args (#1456)** - **Changing default captcha type to frictionless for explicit render** - **Changing default captcha type to frictionless** - **Tidy of dirty bundle** - **fix logging (#1455)** - **Log errors returned from provider and return false for verified (#1441)** - **fix bump version** - **git pull in bump version** - **move check** - **fetch before check** - **use fetch depth** - **adjust src branch check** - **Bump version to 2.1.5** --------- Co-authored-by: Hugh <[email protected]> Co-authored-by: Chris <[email protected]> Co-authored-by: George Oastler <[email protected]> Co-authored-by: Hugh <[email protected]> Co-authored-by: George Oastler <[email protected]>
- Loading branch information
1 parent
8f50b6d
commit 96e534c
Showing
126 changed files
with
1,983 additions
and
6,926 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 |
---|---|---|
|
@@ -82,10 +82,13 @@ jobs: | |
echo "******************************" | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" | ||
fetch-depth: 0 # Fetch all history for all branches | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
node-version-file: 'package.json' | ||
- run: npm i -g "npm@$(jq -r .engines.npm < package.json)" | ||
|
||
- run: mkdir -p ~/.npm | ||
|
@@ -114,8 +117,15 @@ jobs: | |
git config user.name "prosoponator[bot]" | ||
git config user.email "[email protected]" | ||
# check the source branch (e.g. staging) is up-to-date with the dest branch (e.g. main) | ||
if [ "$(git rev-list --count origin/${{ github.event.inputs.src }}..origin/${{ github.event.inputs.dest }})" -ne 0 ]; then | ||
echo "Source branch ${{ github.event.inputs.src }} is not up-to-date with destination branch ${{ github.event.inputs.dest }}. PR destination branch into the source branch and try again." | ||
exit 1 | ||
else | ||
echo "Source branch ${{ github.event.inputs.src }} is up-to-date with destination branch ${{ github.event.inputs.dest }}" | ||
fi | ||
# checkout the src branch | ||
git fetch --all | ||
git checkout ${{ github.event.inputs.src }} | ||
INTERIM="${{ github.event.inputs.interim}}" | ||
|
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
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
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 |
---|---|---|
@@ -1,23 +1,24 @@ | ||
# Run prosoponator bot on any comments | ||
# update staging on push to main | ||
|
||
name: prosoponator_bot | ||
name: update_staging | ||
|
||
on: issue_comment | ||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.PROSOPONATOR_PAT }} | ||
GH_TOKEN: ${{ secrets.PROSOPONATOR_PAT }} | ||
CARGO_TERM_COLOR: always | ||
NODE_OPTIONS: "--max-old-space-size=4096" | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
comment: | ||
# This job only runs for pull request comments | ||
if: ${{ github.event.issue.pull_request && github.event.pull_request.draft == false }} | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Print contexts | ||
|
@@ -59,16 +60,26 @@ jobs: | |
echo "******************************" | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: "recursive" | ||
|
||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: '.nvmrc' | ||
node-version-file: 'package.json' | ||
|
||
- run: npm i -g "npm@$(jq -r .engines.npm < package.json)" | ||
|
||
- name: Run | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.PROSOPONATOR_PAT }} | ||
- name: PR main into staging | ||
run: | | ||
npm ci | ||
cd dev/prosoponator-bot | ||
npx tsx src/bot.ts | ||
set -euo pipefail # stop on errors, print commands, fail on pipe fails | ||
# set the author in git | ||
git config user.name "prosoponator[bot]" | ||
git config user.email "[email protected]" | ||
# checkout the src branch | ||
git fetch --all | ||
git checkout main | ||
# create a PR for the release | ||
gh pr create --base staging --title "Bring staging up to date with main" --fill |
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
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
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.