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