Skip to content

Commit

Permalink
added workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
thenetworkgrinch committed Nov 6, 2024
1 parent 23d4bdb commit b8e06f2
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/update.yml
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

0 comments on commit b8e06f2

Please sign in to comment.