Skip to content

Commit 8cdf996

Browse files
authored
Update conversion-request.yml
1 parent 1f1521f commit 8cdf996

1 file changed

Lines changed: 7 additions & 13 deletions

File tree

.github/workflows/conversion-request.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
get-pack-info:
9-
runs-on: ubuntu-22.04
9+
runs-on: ubuntu-latest
1010
if: github.event.label.name == 'conversion'
1111
permissions:
1212
issues: read
@@ -71,7 +71,7 @@ jobs:
7171
echo "BLOCK_CONVERSION=$(jq -r '.block_conversion' inputs.json)" >> $GITHUB_OUTPUT
7272
7373
convert-pack:
74-
runs-on: ubuntu-22.04
74+
runs-on: ubuntu-latest
7575
needs: get-pack-info
7676
permissions:
7777
contents: read
@@ -96,18 +96,12 @@ jobs:
9696
uses: actions/setup-python@v5
9797
with:
9898
python-version: '3.11'
99-
- name: Add PPA for Ghostscript 10
100-
run: |
101-
sudo add-apt-repository ppa:ubuntu-gis/ppa
102-
sudo apt-get update
10399
- name: Install dependencies
104100
run: |
105-
sudo apt-get install -y moreutils zip
101+
sudo apt-get update || sudo apt-get update --fix-missing
102+
sudo apt-get install -y moreutils zip imagemagick
106103
yarn global add spritesheet-js
107-
sudo apt-get install -y imagemagick
108-
pip install Pillow
109-
pip install requests
110-
pip install jproperties
104+
pip install Pillow requests jproperties
111105
- name: Convert Pack
112106
id: convert-pack
113107
continue-on-error: false
@@ -150,7 +144,7 @@ jobs:
150144
staging/target/scratch_files.zip
151145
staging/config.json
152146
post-result:
153-
runs-on: ubuntu-22.04
147+
runs-on: ubuntu-latest
154148
needs: convert-pack
155149
timeout-minutes: 2
156150
permissions:
@@ -177,7 +171,7 @@ jobs:
177171
with:
178172
issue-number: ${{ github.event.issue.number }}
179173
conversion-failed:
180-
runs-on: ubuntu-22.04
174+
runs-on: ubuntu-latest
181175
needs: [get-pack-info, convert-pack, post-result]
182176
if: always() && (needs.get-pack-info.result == 'failure' || needs.convert-pack.result == 'failure' || needs.convert-pack.result == 'post-result')
183177
timeout-minutes: 2

0 commit comments

Comments
 (0)