-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
CI: Automate SDK version updates #608
Conversation
4ef4861
to
3ffb831
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
neat! :D
import { join } from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
|
||
const __dirname = fileURLToPath(new URL('.', import.meta.url)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
l: Should we rename this to just dirname
so that __dirname
isn't overloaded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah can do.
I used __dirname
here because this code is shimming it as it just doesn't exist in JavaScript modules.
- name: Update Versions | ||
run: yarn update-sdk-versions | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I always wonder if it makes sense to just pin the exact version of actions just to lower the chance of supply chain attacks. Is there anything at risk in this repo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the only risk is it adding code that is missed in code review and makes it into a release.
We just need to treat PRs created by this like any other from an unknown contributor!
Adds a workflow run every day which submits PRs if the JavaScript SDKs have had new releases.