mirror of
https://github.com/GXDE-OS/GXDE.git
synced 2026-06-22 09:26:37 +08:00
修复设置tag后依旧只会构建默认分支的问题
This commit is contained in:
@@ -89,11 +89,13 @@ jobs:
|
|||||||
if [[ ${{ inputs.gxde-is-backport }} == true ]]; then
|
if [[ ${{ inputs.gxde-is-backport }} == true ]]; then
|
||||||
isBackport=backport
|
isBackport=backport
|
||||||
fi
|
fi
|
||||||
|
export REPO_BRANCH=${{ github.ref_name }}
|
||||||
bash .github/workflows/configure-building-enviroment-base-system.sh ${{ inputs.arch }} \
|
bash .github/workflows/configure-building-enviroment-base-system.sh ${{ inputs.arch }} \
|
||||||
${{ inputs.rootfs-codename }} \
|
${{ inputs.rootfs-codename }} \
|
||||||
$REPOSITORY \
|
$REPOSITORY \
|
||||||
https://github.com/$GITHUB_REPOSITORY \
|
https://github.com/$GITHUB_REPOSITORY \
|
||||||
${{ inputs.rootfs-source }} \
|
${{ inputs.rootfs-source }} \
|
||||||
|
${{ github.ref_name }} \
|
||||||
$isBackport
|
$isBackport
|
||||||
|
|
||||||
- name: Building ${{ GITHUB.repository }}
|
- name: Building ${{ GITHUB.repository }}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ if [[ $? != 0 ]] && [[ $1 == loong64 ]] && [[ $2 != "loongnix" ]]; then
|
|||||||
sudo mv squashfs-root $bottlePath -v
|
sudo mv squashfs-root $bottlePath -v
|
||||||
fi
|
fi
|
||||||
sudo bash .github/workflows/pardus-chroot $bottlePath
|
sudo bash .github/workflows/pardus-chroot $bottlePath
|
||||||
if [[ $6 == "backport" ]]; then
|
if [[ $7 == "backport" ]]; then
|
||||||
sudo cp -rv .github/workflows/debian-backports.list $bottlePath/etc/apt/sources.list.d
|
sudo cp -rv .github/workflows/debian-backports.list $bottlePath/etc/apt/sources.list.d
|
||||||
sudo mkdir -p $bottlePath/etc/apt/preferences.d/
|
sudo mkdir -p $bottlePath/etc/apt/preferences.d/
|
||||||
sudo cp -rv .github/workflows/90bookworm-backports $bottlePath/etc/apt/preferences.d/
|
sudo cp -rv .github/workflows/90bookworm-backports $bottlePath/etc/apt/preferences.d/
|
||||||
@@ -68,7 +68,7 @@ sudo chroot $bottlePath apt update
|
|||||||
sudo chroot $bottlePath apt full-upgrade -y
|
sudo chroot $bottlePath apt full-upgrade -y
|
||||||
sudo chroot $bottlePath apt install git -y
|
sudo chroot $bottlePath apt install git -y
|
||||||
sudo chroot $bottlePath git clone $3 #--depth=1
|
sudo chroot $bottlePath git clone $3 #--depth=1
|
||||||
sudo chroot $bottlePath git clone $4 #--depth=1
|
sudo chroot $bottlePath git clone $4 -b $6 #--depth=1
|
||||||
sudo mv $bottlePath/$(basename $3)/.github/workflows/* $bottlePath/$(basename $4)/.github/workflows -v
|
sudo mv $bottlePath/$(basename $3)/.github/workflows/* $bottlePath/$(basename $4)/.github/workflows -v
|
||||||
# 修改版本号
|
# 修改版本号
|
||||||
#sudo sed -i "s/) UNRELEASED; urgency=medium/~$2) UNRELEASED; urgency=medium/g" $bottlePath/deep-wine-runner-qemu-system/debian/changelog
|
#sudo sed -i "s/) UNRELEASED; urgency=medium/~$2) UNRELEASED; urgency=medium/g" $bottlePath/deep-wine-runner-qemu-system/debian/changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user