-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23d4bdb
commit b8e06f2
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,33 @@ | ||
name: Build and Publish YAGSL vendordep | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
releaseVersion: | ||
description: "Release version number" | ||
type: string | ||
required: true | ||
jobs: | ||
update: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
releaseVersion: ${{ inputs.releaseVersion }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Clone dev branch | ||
run: | | ||
gh repo clone BroncBotz3481/YAGSL-Example -- -b dev | ||
- name: Copy source over | ||
run: | | ||
rm -rf src/main/java/swervelib | ||
cp -r YAGSL-Example/src/main/java/swervelib ./ | ||
rm -rf YAGSL-Example | ||
- name: Update repository | ||
run: | | ||
git config --global user.name "thenetworkgrinch" | ||
git config --global user.email "[email protected]" | ||
git add . | ||
git commit -m "Upgrading to ${{ inputs.releaseVersion }}" | ||
git push |