Print debug library #46
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Testing Script | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- '_testing/gmod_testing.lua' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
container: debian:bullseye | |
steps: | |
- uses: actions/checkout@v4 | |
name: Checkout | |
with: | |
sparse-checkout: "_testing/" | |
- name: Prepare | |
run: | | |
apt update | |
apt install -y curl | |
- name: Update gmod_testing.lua | |
run: | | |
cd _testing | |
curl "https://${{secrets.PTERODACTYL_URL}}/api/client/servers/${{secrets.PTERODACTYL_SERVER}}/files/write?file=%2Fgarrysmod%2Flua%2Fgmod_testing.lua" \ | |
-H 'Accept: application/json' \ | |
-H 'Authorization: Bearer ${{secrets.PTERODACTYL_KEY}}' \ | |
-X POST \ | |
--data-binary '@gmod_testing.lua' |