CI: authenticate pushes to subrepositories properly
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c22b2f660f
commit
6e5b3e393c
2 changed files with 6 additions and 6 deletions
6
.github/workflows/push_subrepos.yml
vendored
6
.github/workflows/push_subrepos.yml
vendored
|
|
@ -9,9 +9,9 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
- name: 'Push recent commits to subrepositories'
|
||||||
token: ${{ secrets.HEXOPS_MACH_PUSH_SUBREPOS }}
|
env:
|
||||||
- name: 'gpu/dawn: use latest binary release'
|
ACCESS_TOKEN: ${{ secrets.HEXOPS_MACH_PUSH_SUBREPOS }}
|
||||||
run: |
|
run: |
|
||||||
git config user.name 'Repository synchronization automation'
|
git config user.name 'Repository synchronization automation'
|
||||||
git config user.email 'stephen@hexops.com'
|
git config user.email 'stephen@hexops.com'
|
||||||
|
|
|
||||||
|
|
@ -2,12 +2,12 @@
|
||||||
set -exuo pipefail
|
set -exuo pipefail
|
||||||
cd "$(dirname "${BASH_SOURCE[0]}")"/..
|
cd "$(dirname "${BASH_SOURCE[0]}")"/..
|
||||||
|
|
||||||
if [[ -z "${GITHUB_ACTIONS}" ]]; then
|
if [[ -z ${GITHUB_ACTIONS+""} ]]; then
|
||||||
git remote add -f mach-glfw git@github.com:hexops/mach-glfw || true
|
git remote add -f mach-glfw git@github.com:hexops/mach-glfw || true
|
||||||
git remote add -f mach-gpu-dawn git@github.com:hexops/mach-gpu-dawn || true
|
git remote add -f mach-gpu-dawn git@github.com:hexops/mach-gpu-dawn || true
|
||||||
else
|
else
|
||||||
git remote add -f mach-glfw https://github.com/hexops/mach-glfw || true
|
git remote add -f mach-glfw "https://slimsag:$ACCESS_TOKEN@github.com/hexops/mach-glfw" || true
|
||||||
git remote add -f mach-gpu-dawn https://github.com/hexops/mach-gpu-dawn || true
|
git remote add -f mach-gpu-dawn "https://slimsag:$ACCESS_TOKEN@github.com/hexops/mach-gpu-dawn" || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git fetch mach-glfw
|
git fetch mach-glfw
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue