Don't enforce repo/branch on preview deploy

This commit is contained in:
Kas-tle 2024-04-19 18:32:47 -07:00 committed by GitHub
parent 65bb1fb559
commit fec62d3658
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
merge-multiple: true merge-multiple: true
- name: Get Preview Metadata - name: Get Preview Metadata
if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }} if: success()
# See https://github.com/Kas-tle/base-release-action/releases/tag/main-11 # See https://github.com/Kas-tle/base-release-action/releases/tag/main-11
uses: Kas-tle/base-release-action@664c39985eb9d0d393ce98e7eb8414d3d98e762a # main-11 uses: Kas-tle/base-release-action@664c39985eb9d0d393ce98e7eb8414d3d98e762a # main-11
with: with:
@ -65,7 +65,7 @@ jobs:
saveMetadata: true saveMetadata: true
updateReleaseData: false updateReleaseData: false
- name: Update Generated Metadata - name: Update Generated Metadata
if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }} if: success()
run: | run: |
cat metadata.json cat metadata.json
echo echo
@ -75,7 +75,7 @@ jobs:
| {$project, "repo", $version, "number": $number | tonumber, "changes": [], "downloads"} | {$project, "repo", $version, "number": $number | tonumber, "changes": [], "downloads"}
' | tee metadata.json ' | tee metadata.json
- name: Publish to Downloads API - name: Publish to Downloads API
if: ${{ success() && github.repository == 'GeyserMC/Geyser' && github.ref_name == 'master' }} if: success()
shell: bash shell: bash
env: env:
DOWNLOADS_USERNAME: ${{ vars.DOWNLOADS_USERNAME }} DOWNLOADS_USERNAME: ${{ vars.DOWNLOADS_USERNAME }}