From b8e06f205e47d4cb41ea106552faf423264fc7af Mon Sep 17 00:00:00 2001 From: thenetworkgrinch Date: Tue, 5 Nov 2024 18:09:10 -0600 Subject: [PATCH] added workflows --- .github/workflows/update.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/update.yml diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml new file mode 100644 index 0000000..98e9a8a --- /dev/null +++ b/.github/workflows/update.yml @@ -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 "thenetworkgrinch@users.noreply.github.com" + git add . + git commit -m "Upgrading to ${{ inputs.releaseVersion }}" + git push