mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-11-14 22:55:52 -06:00
22 lines
614 B
YAML
22 lines
614 B
YAML
|
name: Update Branch
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
with:
|
||
|
ref: ${{ github.head_ref }}
|
||
|
- name: Create local changes
|
||
|
run: |
|
||
|
sed -i "/\$BranchToUse = /c\$BranchToUse = '$GITHUB_REF_NAME'" $GITHUB_WORKSPACE/runspace.ps1
|
||
|
cat $GITHUB_WORKSPACE/runspace.ps1
|
||
|
sed -i "/\$BranchToUse = /c\$BranchToUse = '$GITHUB_REF_NAME'" $GITHUB_WORKSPACE/runspace.ps1
|
||
|
cat $GITHUB_WORKSPACE/winutil.ps1
|
||
|
- uses: stefanzweifel/git-auto-commit-action@v4
|
||
|
with:
|
||
|
commit_message: Update Branch in script
|