-
Notifications
You must be signed in to change notification settings - Fork 38
33 lines (33 loc) · 1001 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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