Skip to content

Commit

Permalink
Merge pull request #1 from tgstation/FixDeb
Browse files Browse the repository at this point in the history
Fix 404'd reprepro .deb download. Cache to prevent it happening again
  • Loading branch information
Cyberboss authored Jan 20, 2024
2 parents 744b527 + 8f87140 commit 0682df1
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/add_tgs_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,23 @@ jobs:
- name: apt-get update
run: sudo apt-get update

- name: Install Tools # TODO: Install reprepro from apt once 5.4.1 migrates to ubuntu from debian
- name: Cache Reprepro .deb
uses: actions/cache@v3
id: cache-reprepro
with:
path: ~/reprepro-deb-cache
key: reprepro-deb

- name: Download Reprepro .deb # TODO: Install reprepro from apt once 5.4.1 migrates to ubuntu from debian. The direct link has been known to 404 on updates
if: steps.cache-reprepro.outputs.cache-hit != 'true'
run: |
sudo apt-get install -y curl
mkdir -p $HOME/reprepro-deb-cache
curl -L https://deb.debian.org/debian/pool/main/r/reprepro/reprepro_5.4.3-1_amd64.deb -o $HOME/reprepro-deb-cache/reprepro.deb
- name: Install Reprepro
run: |
sudo apt-get install -y git curl gnupg2 procps xz-utils
curl -L https://deb.debian.org/debian/pool/main/r/reprepro/reprepro_5.4.2-1_amd64.deb -o reprepro.deb
sudo apt-get install -y ./reprepro.deb
sudo apt-get install -y git gnupg2 procps xz-utils $HOME/reprepro-deb-cache/reprepro.deb
- name: Initialize gpg-agent
uses: crazy-max/ghaction-import-gpg@72b6676b71ab476b77e676928516f6982eef7a41 # v5.3.0
Expand Down

0 comments on commit 0682df1

Please sign in to comment.