mirror of
https://github.com/runelite/plugin-hub.git
synced 2026-05-31 03:44:51 -04:00
package: hard code packager_url
repo vars are not available in pull_requests for some reason
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -16,7 +16,10 @@ permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
build:
|
||||
if: vars.PACKAGER_URL != ''
|
||||
# any forks that predate this repo having an action will have actions
|
||||
# enabled by default, which will fail in a lot of cases because the branch
|
||||
# is new, which makes the differential build fail
|
||||
if: github.event_name != 'push' || github.repository_owner == 'runelite'
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
@@ -30,7 +33,7 @@ jobs:
|
||||
java-version: 11
|
||||
- name: fetch packager
|
||||
env:
|
||||
PACKAGER_URL: ${{ vars.PACKAGER_URL }}
|
||||
PACKAGER_URL: "https://github.com/runelite/plugin-hub-tooling/releases/download/v0/bundle.tar.zst"
|
||||
run: |
|
||||
set -exu
|
||||
curl --location --output bundle.tar.zst "$PACKAGER_URL"
|
||||
@@ -89,7 +92,7 @@ jobs:
|
||||
path: /tmp/jars
|
||||
retention-days: 4
|
||||
upload:
|
||||
if: vars.PACKAGER_URL != '' && github.event_name != 'pull_request'
|
||||
if: (github.event_name != 'push' || github.repository_owner == 'runelite') && github.event_name != 'pull_request'
|
||||
needs: build
|
||||
concurrency: upload
|
||||
runs-on: ubuntu-22.04
|
||||
@@ -101,7 +104,7 @@ jobs:
|
||||
persist-credentials: false
|
||||
- name: fetch packager
|
||||
env:
|
||||
PACKAGER_URL: ${{ vars.PACKAGER_URL }}
|
||||
PACKAGER_URL: "https://github.com/runelite/plugin-hub-tooling/releases/download/v0/bundle.tar.zst"
|
||||
run: |
|
||||
set -exu
|
||||
curl --location --output bundle.tar.zst "$PACKAGER_URL"
|
||||
|
||||
Reference in New Issue
Block a user