mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-12 03:57:08 +00:00
fix push to repos jobs
This commit is contained in:
parent
c212f204ca
commit
de9d44169a
1 changed files with 4 additions and 10 deletions
14
.github/workflows/master.yml
vendored
14
.github/workflows/master.yml
vendored
|
|
@ -114,7 +114,7 @@ jobs:
|
||||||
Remove-Item -Path ./Version
|
Remove-Item -Path ./Version
|
||||||
# Checkout/Create the branch
|
# Checkout/Create the branch
|
||||||
- name: Create new branch
|
- name: Create new branch
|
||||||
run: git checkout -b $($Env:GITHUB_REF -replace "refs/heads/")
|
run: git checkout master
|
||||||
# Download the build output into the repo
|
# Download the build output into the repo
|
||||||
- name: Download Build output
|
- name: Download Build output
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
|
|
@ -150,10 +150,7 @@ jobs:
|
||||||
# Push the commit
|
# Push the commit
|
||||||
- name: Push to Builds Repo
|
- name: Push to Builds Repo
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: git push -u origin master --force
|
||||||
$branch = $($Env:GITHUB_REF) -replace "refs/heads/"
|
|
||||||
Write-Host "Branch: $branch"
|
|
||||||
git push -u origin $($branch) --force
|
|
||||||
# Push the tags
|
# Push the tags
|
||||||
- name: Push tags
|
- name: Push tags
|
||||||
run: git push --tags origin
|
run: git push --tags origin
|
||||||
|
|
@ -191,7 +188,7 @@ jobs:
|
||||||
Remove-Item -Path ./Version
|
Remove-Item -Path ./Version
|
||||||
# Checkout/Create the branch
|
# Checkout/Create the branch
|
||||||
- name: Create new branch
|
- name: Create new branch
|
||||||
run: git checkout -b $($Env:GITHUB_REF -replace "refs/heads/")
|
run: git checkout master
|
||||||
# Download the build output into the repo
|
# Download the build output into the repo
|
||||||
- name: Download Build output
|
- name: Download Build output
|
||||||
uses: actions/download-artifact@v1
|
uses: actions/download-artifact@v1
|
||||||
|
|
@ -227,10 +224,7 @@ jobs:
|
||||||
# Push the commit
|
# Push the commit
|
||||||
- name: Push to Builds Repo
|
- name: Push to Builds Repo
|
||||||
shell: powershell
|
shell: powershell
|
||||||
run: |
|
run: git push -u origin master --force
|
||||||
$branch = $($Env:GITHUB_REF) -replace "refs/heads/"
|
|
||||||
Write-Host "Branch: $branch"
|
|
||||||
git push -u origin $($branch) --force
|
|
||||||
# Push the tags
|
# Push the tags
|
||||||
- name: Push tags
|
- name: Push tags
|
||||||
run: git push --tags origin
|
run: git push --tags origin
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue