Skip to content

Commit

Permalink
fix: It's unnecessary to use process.exit to skip create PR. (#2947)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu authored Nov 20, 2023
1 parent c69258f commit d168e73
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/update_ckb_client_versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
id: update_versions
run: |
npm run update:client-versions
git add .ckb-version .ckb-light-version
git add .ckb-version .ckb-light-version compatible.json
- name: Set GPG
uses: crazy-max/ghaction-import-gpg@v5
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/update_neuron_compatible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
git add compatible.json
- name: Set GPG
if: ${{ success() }}
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
Expand All @@ -40,7 +39,6 @@ jobs:
git_commit_gpgsign: true

- name: Open PR to RC branch
if: ${{ success() }}
uses: peter-evans/create-pull-request@v5
with:
title: Update Neuron compatibility table
Expand Down
2 changes: 1 addition & 1 deletion compatible.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@
"light": []
}
}
}
}
2 changes: 0 additions & 2 deletions scripts/add-neuron-version-in-compatibility-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ const exec = () => {
if (newNeuronVersion && lastNeuronVersion !== newNeuronVersion) {
info.compatible[newNeuronVersion] = info.compatible[lastNeuronVersion]
fs.writeFileSync(compatiblePath, `${JSON.stringify(info, null, 2)}\r\n`)
} else {
process.exit(1)
}
}

Expand Down

2 comments on commit d168e73

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 6923939920

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Packaging for test is done in 6923938723

Please sign in to comment.