-
Notifications
You must be signed in to change notification settings - Fork 0
github-action-auto-version #187
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,70 @@ | ||||||
| name: Auto Version Packages | ||||||
|
|
||||||
| on: | ||||||
| workflow_dispatch: | ||||||
| inputs: | ||||||
| version_type: | ||||||
| description: 'Version type (patch, minor, major)' | ||||||
| required: true | ||||||
| default: 'patch' | ||||||
| type: choice | ||||||
| options: | ||||||
| - patch | ||||||
| - minor | ||||||
| - major | ||||||
|
|
||||||
| permissions: | ||||||
| contents: write # Required to create tags and push them | ||||||
|
|
||||||
| jobs: | ||||||
| auto-version: | ||||||
| name: "Auto Version Changed Packages" | ||||||
| runs-on: ubuntu-latest | ||||||
| timeout-minutes: 10 | ||||||
|
|
||||||
| steps: | ||||||
| - name: Checkout code | ||||||
| uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0 | ||||||
| with: | ||||||
| fetch-depth: 0 # Fetch all history for tags | ||||||
| token: ${{ secrets.GITHUB_TOKEN }} | ||||||
|
||||||
| token: ${{ secrets.GITHUB_TOKEN }} | |
| token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} |
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.
This is a good point, what are our branch protection rules for this repo? likely will fail due to requiring a PR
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 also dunno 🤣
Maybe @lei-wego has some idea? But I see from our other(like payments web component) github workflow we only use GITHUB_TOKEN
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.
payments web component actually used to use something called deploy keys, with a custom branch rule to allow deploy keys to bypass.
I've since made changes to the payments web component workflow files but haven't had a chance to test the new flow yet.
Copilot
AI
Aug 29, 2025
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.
The workflow assumes the auto_version script exists and is executable, but there's no error handling if the script doesn't exist or fails. Consider adding error checking or using set -e to ensure the workflow fails appropriately if the script encounters issues.
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 should be okay since the file is also committed in the repo so it will always be present? 🤔
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.
generated by AI