Skip to content

Commit 80e5e2d

Browse files
committed
Signed-off-by: Günter Neiß <gneiss@web.de>
1 parent 37ddfb4 commit 80e5e2d

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

.github/workflows/LinuxBuild.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,20 @@ jobs:
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4242
working-directory: './'
4343
run: |
44-
set -x
45-
set -v
44+
#set -x
45+
#set -v
4646
npx node-gyp install
4747
yarn install
4848
yarn --cwd arduino-ide-extension build
4949
yarn --cwd electron-app rebuild
5050
yarn --cwd electron-app build
5151
yarn --cwd electron-app package
52-
find / -iname "*.AppImage"
5352
cp /__w/arduino-ide/arduino-ide/electron-app/dist/*.AppImage .
5453
- name: Mod AppImage to use chrome-sandbox of local os
5554
if: ${{ success() }}
5655
run: |
57-
set -x
58-
set -v
56+
#set -x
57+
#set -v
5958
EXE=$(readlink -f *.AppImage)
6059
chmod a+x "${EXE}"
6160
mkdir t
@@ -78,8 +77,8 @@ jobs:
7877
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7978
working-directory: './'
8079
run: |
81-
set -x
82-
set -v
80+
#set -x
81+
#set -v
8382
mkdir -p /etc/apt/keyrings/
8483
mkdir -p /etc/apt/sources.list.d/
8584
cp .github/tools/githubcli-archive-keyring.gpg /etc/apt/keyrings/githubcli-archive-keyring.gpg

.github/workflows/upstream-merge.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
git checkout main
2626
git fetch upstream
2727
#ROOT_FILES=$(grep -Ev '^\.github/|^\.git/|^[^/]+$')
28-
DIFF_FILES=$(git diff --name-only upstream/main HEAD | grep -Ev '^(\.github/|\.git/|^[^/]+$)' || true)
28+
BASE=$(git merge-base HEAD upstream/main)
29+
DIFF_FILES=$(git diff --name-only $BASE upstream/main | grep -Ev '^(\.github/|\.git/|^[^/]+$)' || true)
2930
echo "DIFF_FILES: $DIFF_FILES"
3031
if [ -z "$DIFF_FILES" ]; then
3132
echo "no_relevant_changes=true" >> $GITHUB_OUTPUT
@@ -50,25 +51,26 @@ jobs:
5051
echo "✅ No merge conflicts"
5152
- name: Install GitHub CLI
5253
run: sudo apt-get install gh -y
53-
- name: Commit and push merge (optional PR instead)
54+
- name: Create branch, push and open PR
5455
if: ${{ success() }}
5556
env:
56-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
57+
GH_TOKEN: ${{ secrets.PAT }}
5758
run: |
5859
# 🟢 Option 1: Direkt pushen (Standard)
5960
#git push origin main
6061
6162
# 🟡 Option 2: PR statt direktem Merge (kommentieren, falls gewünscht)
63+
echo $GH_TOKEN | gh auth login --with-token
6264
BRANCH="upstream-merge-$(date +%s)"
6365
git checkout -b $BRANCH
6466
git push origin $BRANCH
6567
gh pr create --title "Merge from upstream" --body "Automatisch erstellter PR" --base main --head $BRANCH
6668
6769
- name: Trigger BuildLinux workflow
68-
if: false && ${{ success() }}
70+
if: ${{ false && success() }}
6971
uses: benc-uk/workflow-dispatch@v1
7072
with:
71-
workflow: BuildLinux.yml
73+
workflow: LinuxBuild.yml
7274
ref: main
7375
token: ${{ secrets.GITHUB_TOKEN }}
7476

0 commit comments

Comments
 (0)