Make CI more friendly to forks
This commit is contained in:
@@ -87,7 +87,7 @@ jobs:
|
|||||||
- name: Create the flatpak manifest
|
- name: Create the flatpak manifest
|
||||||
run: |
|
run: |
|
||||||
git config --global --add safe.directory $(pwd)
|
git config --global --add safe.directory $(pwd)
|
||||||
tools/gen_flatpak_manifest.sh --git > io.github.wivrn.wivrn.yml
|
tools/gen_flatpak_manifest.sh --git https://github.com/${{github.repository}}.git > io.github.wivrn.wivrn.yml
|
||||||
|
|
||||||
# TODO: replace with version > v6.3 when it's released
|
# TODO: replace with version > v6.3 when it's released
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@b8be6bc0ede43cb3a2cc55895654312b14f84a0d
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@b8be6bc0ede43cb3a2cc55895654312b14f84a0d
|
||||||
@@ -432,7 +432,7 @@ jobs:
|
|||||||
git reset --hard upstream/master
|
git reset --hard upstream/master
|
||||||
|
|
||||||
git config --global --add safe.directory $(pwd)
|
git config --global --add safe.directory $(pwd)
|
||||||
../wivrn/tools/gen_flatpak_manifest.sh --git > io.github.wivrn.wivrn.yml
|
../wivrn/tools/gen_flatpak_manifest.sh --git https://github.com/${{github.repository}}.git > io.github.wivrn.wivrn.yml
|
||||||
|
|
||||||
git checkout -b $WIVRN_TAG
|
git checkout -b $WIVRN_TAG
|
||||||
git add io.github.wivrn.wivrn.yml
|
git add io.github.wivrn.wivrn.yml
|
||||||
|
|||||||
@@ -9,6 +9,8 @@ do
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
"--git")
|
"--git")
|
||||||
WIVRN_SRC_TYPE=git
|
WIVRN_SRC_TYPE=git
|
||||||
|
shift
|
||||||
|
WIVRN_SRC2="url: $1"
|
||||||
;;
|
;;
|
||||||
"--gitlocal")
|
"--gitlocal")
|
||||||
WIVRN_SRC_TYPE=gitlocal
|
WIVRN_SRC_TYPE=gitlocal
|
||||||
@@ -35,7 +37,6 @@ BOOSTPFR_SHA256=$(curl --silent --location $BOOSTPFR_URL | sha256sum | cut -f1 -
|
|||||||
if [ $WIVRN_SRC_TYPE = git ]
|
if [ $WIVRN_SRC_TYPE = git ]
|
||||||
then
|
then
|
||||||
WIVRN_SRC1="type: git"
|
WIVRN_SRC1="type: git"
|
||||||
WIVRN_SRC2="url: https://github.com/WiVRn/WiVRn.git"
|
|
||||||
WIVRN_SRC3="tag: ${GIT_COMMIT}"
|
WIVRN_SRC3="tag: ${GIT_COMMIT}"
|
||||||
elif [ $WIVRN_SRC_TYPE = gitlocal ]
|
elif [ $WIVRN_SRC_TYPE = gitlocal ]
|
||||||
then
|
then
|
||||||
|
|||||||
Reference in New Issue
Block a user