-
Notifications
You must be signed in to change notification settings - Fork 382
Add CI workflow "Create client release ticket" #1047
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f7fdedd
Add CI workflow "Create client release ticket"
librelois 87a92f8
make the text impersonal
librelois 1d3d665
editorconfig
librelois 0349777
commit suggestions
librelois 100bf85
Merge branch 'master' into elois-ci-client-release-issue
librelois File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,35 @@ | ||
| name: Create client release ticket | ||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| from: | ||
| description: "Previous client version" | ||
| required: true | ||
| to: | ||
| description: "Next client version" | ||
| required: true | ||
|
|
||
| jobs: | ||
| create_client_ticket: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Use Node.js 14.x | ||
| uses: actions/setup-node@v2 | ||
| with: | ||
| node-version: 14.x | ||
| - name: Generate client release issue | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| cd tools | ||
| yarn install | ||
| yarn --silent run print-client-release-issue --from ${{ github.event.inputs.from }} --to ${{ github.event.inputs.to }} | tee ../client-release-issue.md | ||
| - name: Create version bump issue | ||
| uses: peter-evans/create-issue-from-file@v3 | ||
| with: | ||
| title: v${{ github.event.inputs.to }} release | ||
| content-filepath: ./client-release-issue.md | ||
| labels: | | ||
| automated issue |
This file contains hidden or 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,46 @@ | ||
| import yargs from "yargs"; | ||
|
|
||
| async function main() { | ||
| const argv = yargs(process.argv.slice(2)) | ||
| .usage("Usage: npm run ts-node github/generate-gh-issue-client-release.ts [args]") | ||
| .version("1.0.0") | ||
| .options({ | ||
| from: { | ||
| type: "string", | ||
| describe: "previous client version", | ||
| required: true, | ||
| }, | ||
| to: { | ||
| type: "string", | ||
| describe: "next client version", | ||
| required: true, | ||
| }, | ||
| }) | ||
| .demandOption(["from", "to"]) | ||
| .help().argv; | ||
|
|
||
| const previousVersion = argv.from; | ||
| const newVersion = argv.to; | ||
|
|
||
| const template = ` | ||
| - [ ] Create a PR with v${newVersion} (see README.md last section or last v${previousVersion} PR | ||
| to see the required changed) | ||
| - [ ] Get that PR approved and merged | ||
| - [ ] Tag master with v${newVersion} and push to github | ||
| - [ ] Start the github action Publish Binary Draft with v${previousVersion} => v${newVersion} | ||
librelois marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| (master branch) | ||
| - [ ] Review the generated Draft and clean a bit the messages if needed (keep it draft) | ||
| - [ ] Update moonbeam-networks stagenet (moonsama/moonlama) config.json to include sha-xxxxx | ||
| (matching your v${newVersion} tag) and increase the config version + 1 | ||
| - [ ] Test the new client on stagenet (moonsama/moonlama) | ||
| - [ ] Publish the client release draft | ||
| - [ ] When everything is ok, publish the new docker image: start github action Publish Docker | ||
librelois marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| with v${newVersion} | ||
| - [ ] Publish the new tracing image: on repo moonbeam-runtime-overrides, start github action | ||
| Publish Docker with v${newVersion} and master | ||
| `; | ||
|
|
||
| console.log(template); | ||
| } | ||
|
|
||
| main(); | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.