Skip to content
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

create issue when polkadot release happens #1045

Conversation

demisx
Copy link
Collaborator

@demisx demisx commented Feb 9, 2023

Goal

The goal of this PR is to record the latest Polkadot release version in frequency repo. It will trigger creating a new GitHub issue later in a different workflow.

Part of #930

@demisx demisx linked an issue Feb 9, 2023 that may be closed by this pull request
6 tasks
@demisx demisx force-pushed the 930-automate-new-issue-creation-when-new-polkadot-release-is-published branch 11 times, most recently from 1bd3a2c to 5cd03ef Compare February 9, 2023 22:17
@demisx demisx force-pushed the 930-automate-new-issue-creation-when-new-polkadot-release-is-published branch from 5cd03ef to 4e33974 Compare February 9, 2023 22:21
@@ -1 +1 @@
v0.9.37
v0.9.36
Copy link
Collaborator Author

@demisx demisx Feb 9, 2023

Choose a reason for hiding this comment

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

Setting this to previous full release, so I can test the update on main via cron schedule.

name: Track Polkadot Releases
on:
schedule:
- cron: "*/5 * * * *"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Setting cron to every 5 mins for testing on main only. I will change it to once per day afterwords.

- cron: "*/5 * * * *"
env:
REPO_URL: https://api.github.com/repos/paritytech/polkadot
RELEASE_TRACK_FILENAME: .github/workflows/.polkadot-latest-full-release.txt
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is the file where we are going to track the latest Polkadot full release.

git config --global user.name 'Frequency CI'
git config --global user.email '[email protected]'
git commit -am "Record new Polkadot release version"
git push origin
Copy link
Collaborator Author

@demisx demisx Feb 9, 2023

Choose a reason for hiding this comment

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

I chose to commit directly to main instead of creating PR because of:

  • This is going to be a very simple one liner commit, i.e. updating v<old.polkadot.version> -> v<new.polkadot.version>
  • The commit will be scoped to .github/workflows/.polkadot-latest-full-release.txt file only and we don't have to rely on others to remember to merge the PR in timely manner.

@demisx demisx marked this pull request as ready for review February 9, 2023 22:28
@demisx
Copy link
Collaborator Author

demisx commented Feb 9, 2023

@saraswatpuneet I am gonna go ahead and merge this one since it's part 1 of #930 and it's kinda holding me back. I can always adjust post-mortem if you find any issues.

@demisx demisx merged commit c6cb240 into main Feb 9, 2023
@demisx demisx deleted the 930-automate-new-issue-creation-when-new-polkadot-release-is-published branch February 9, 2023 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate new issue creation when new Polkadot release is published
1 participant