Skip to content

vortex_extension_update #520

vortex_extension_update

vortex_extension_update #520

Workflow file for this run

name: Publish
on:
repository_dispatch:
types: [vortex_extension_update]
push:
branches:
- '**'
paths-ignore:
- 'docs/**'
- '.github/workflows/docs.yml'
pull_request:
branches: [ master ]
jobs:
get-version:
runs-on: ubuntu-latest
name: Get Version
outputs:
version: ${{ steps.get-version.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Get Version
id: get-version
uses: beaconbrigade/[email protected]
with:
path: .
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18.17.1
cache: "yarn"
- run: yarn --frozen-lockfile --immutable --network-timeout 600000 install
- run: yarn run build
- uses: actions/upload-artifact@v4
with:
name: game-mount-and-blade2
path: dist
###########################
# GITHUB #
###########################
publish-on-github:
if: github.ref == 'refs/heads/master'
needs: [get-version, build-and-test]
uses: BUTR/workflows/.github/workflows/release-github.yml@master
with:
mod_id: game-mount-and-blade2
mod_version: ${{ needs.get-version.outputs.version }}
mod_description: Download and drag the archive onto the lower right drop zone in Vortex's Extensions page.
artifact_name: game-mount-and-blade2
###########################
# NEXUSMODS #
###########################
publish-on-nexusmods:
if: github.ref == 'refs/heads/master'
needs: [get-version, build-and-test]
uses: BUTR/workflows/.github/workflows/release-nexusmods.yml@master

Check failure on line 70 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. In .github/workflows/publish.yml (Line: 70, Col: 11): Error from called workflow BUTR/workflows/.github/workflows/release-nexusmods.yml@master (Line: 92, Col: 12): Unexpected symbol: '-f'. Located at position 70 within expression: inputs.mod_description_full && 'fulldescription' || 'description }}' -f "$PWD/changelog.txt")" desc="${desc//'%'/'%25'}" desc="${desc//$'"'/'%22'}" desc="${desc//$'\n'/'%0A'}" desc="${desc//$'\r'/'%0D'}" echo "::set-output name=mod_description::$desc" c_desc="${desc#'For'*'%0A* '}" c_desc="${c_desc//'%0A* '/'%0A'}" echo "::set-outpu[...]
with:
nexusmods_game_id: site
nexusmods_mod_id: 875
mod_filename: game-mount-and-blade2
mod_version: ${{ needs.get-version.outputs.version }}
mod_description: "Download and drag the archive onto the lower right drop zone in Vortex's Extensions page."
artifact_name: game-mount-and-blade2
append_v_to_version: false
secrets:
NEXUSMODS_APIKEY: ${{ secrets.ARAGAS_NEXUSMODS_API_KEY }}
NEXUSMODS_SESSION_COOKIE: ${{ secrets.ARAGAS_NEXUSMODS_SESSION_COOKIE }}