From 8a670489785a3726b7401c0ed2ba927a7b656a76 Mon Sep 17 00:00:00 2001 From: Ward from fusion-voyager-3 Date: Mon, 15 Jul 2024 15:54:39 +0300 Subject: [PATCH] --- .github/workflows/gen-apt-config.yml | 8 +------- gen-apt-config.sh | 4 ++++ 2 files changed, 5 insertions(+), 7 deletions(-) create mode 100644 gen-apt-config.sh diff --git a/.github/workflows/gen-apt-config.yml b/.github/workflows/gen-apt-config.yml index a70eff1..d8df4b4 100644 --- a/.github/workflows/gen-apt-config.yml +++ b/.github/workflows/gen-apt-config.yml @@ -15,14 +15,8 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Update apt cache - run: echo -e "Package: *\nPin: release a=experimental\nPin-Priority: 600" > /etc/apt/preferences.d/0-pika-debian-settings - - - name: Update apt cache - run: apt-get update -y - - name: Generate apt pin and json files - run: ./gen-apt-config.py + run: ./gen-apt-config.sh - name: Setup git and push run: git config --global user.name 'Github Workflow Action' && git config --global user.email 'hotrod.master@hotmail.com' && git config --global --add safe.directory /__w/pika-base-debian-container/pika-base-debian-container && git add . && git commit -am"Commited by GH Action - gen-apt-config.yml" && git push diff --git a/gen-apt-config.sh b/gen-apt-config.sh new file mode 100644 index 0000000..92774d4 --- /dev/null +++ b/gen-apt-config.sh @@ -0,0 +1,4 @@ +#! /bin/bash +echo -e "Package: *\nPin: release a=experimental\nPin-Priority: 600" > /etc/apt/preferences.d/0-pika-debian-settings +apt-get update -y +./gen-apt-config.py \ No newline at end of file