Skip to content

Commit

Permalink
going to cry
Browse files Browse the repository at this point in the history
  • Loading branch information
ari-party committed Jan 16, 2025
1 parent 3d0eae0 commit fb7171f
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build_overlay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
run: pnpm install

- name: Install dependencies (ubuntu)
if: matrix.platform == "ubuntu-22.04" # This must match the platform value defined above.
if: matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
Expand Down Expand Up @@ -139,8 +139,8 @@ jobs:
- name: Convert artifact paths
id: artifact_paths
run: |
json="${{ steps.tauri_build.outputs.artifactPaths }}" # must use single quotes
list="$(echo $json | jq -r ". | join(", ")")"
json='${{ steps.tauri_build.outputs.artifactPaths }}' # must use single quotes
list="$(echo $json | jq -r '. | join(", ")')"
echo "list=$list" >> $GITHUB_OUTPUT
- uses: actions/attest-build-provenance@v1
Expand Down
30 changes: 26 additions & 4 deletions .github/workflows/update_importedguns.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,46 @@ jobs:
update-importedguns:
runs-on: ubuntu-latest

defaults:
run:
shell: bash
working-directory: ./packages/mtc-artillery

steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/[email protected]
with:
version: 9

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
cache-dependency-path: ./packages/mtc-artillery/pnpm-lock.yaml

- name: Execute script
id: roblox-luau-execution
uses: grand-hawk/[email protected]
with:
roblox_api_key: ${{ secrets.ROBLOX_LUAU_EXECUTION_API_KEY }}
universe_id: "3221676855"
place_id: "8421780146"
luau_file: "packages/mtc-artillery/scripts/exportProjectiles.luau"
output_file: "${{ runner.temp }}/output.json"
luau_file: "./packages/mtc-artillery/scripts/exportProjectiles.luau"
output_file: "script-execution-output.json"

- name: Process JSON output
run: jq ".[0]" "${{ runner.temp }}/output.json" > "packages/mtc-artillery/src/config/importedGuns.json"
run: jq ".[0]" "script-execution-output.json" > "./src/config/importedGuns.json"

- name: Install pnpm packages
run: pnpm install

- name: Format
run: pnpm run format

- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
add: "packages/mtc-artillery/src/config/importedGuns.json"
add: "./src/config/importedGuns.json"

0 comments on commit fb7171f

Please sign in to comment.