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

Add increment_version workflow #381

Merged
merged 4 commits into from
Dec 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/increment_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Increment Version

on:
workflow_call:
workflow_dispatch:
pull_request:
branches: [main]
types: [opened]

jobs:
increment:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }} # We need to checkout the head branch, not the temporary merge branch
persist-credentials: false

- name: Setup Node.js environment
uses: actions/[email protected]

- name: Set name
run: git config user.name "Gearbox Bot"

- name: Set email
run: git config user.email "[email protected]"

- name: Increment patch number
run: npm version patch

- name: Push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GIT_PUSH_TOKEN }}
branch: ${{ github.head_ref }}
1 change: 0 additions & 1 deletion lib/Types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,6 @@ export type DbPicklist = {
};
};


/**
* DO NOT GIVE TO CLIENTS!
*/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sj3",
"version": "0.1.0",
"version": "1.1.1",
"private": true,
"repository": "https://github.com/Decatur-Robotics/Gearbox",
"scripts": {
Expand Down
Loading