Compare commits
20 Commits
v0.1
...
env-variables
| Author | SHA1 | Date | |
|---|---|---|---|
| 264c4c008d | |||
| 6e93d2526a | |||
| 5f49386817 | |||
| cdf7368cc8 | |||
| eeee33e584 | |||
| a8108f8532 | |||
| 57082ee51f | |||
| 5dd225a0cc | |||
| b3d32d4c2b | |||
| a57fcabf73 | |||
| 7ed3e250df | |||
| 453a0856d6 | |||
| 90cf5a2fe8 | |||
| 27e65856d5 | |||
| 8457214b63 | |||
| d0c8ef4632 | |||
| 6a758bf3f0 | |||
| 119adfd57b | |||
| e651cd4edc | |||
| 2f0807172e |
@@ -2,19 +2,22 @@ name: RCON Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [ env-variables ]
|
||||
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
DAY_OF_WEEK: Monday
|
||||
|
||||
jobs:
|
||||
rcon_test:
|
||||
runs-on: ubuntu-latest
|
||||
name: RCON Test
|
||||
name: RCON Test Dev
|
||||
steps:
|
||||
- name: RCON Connection
|
||||
uses: Plagiatus/RCON-Action@v0.1
|
||||
uses: Plagiatus/RCON-Action@v0.2
|
||||
with:
|
||||
server: ${{ secrets.rcon_server }}
|
||||
port: ${{ secrets.rcon_port }}
|
||||
password: ${{ secrets.rcon_password }}
|
||||
commands: '["say hi", "reload"]'
|
||||
commands: '["tellraw @a [{\"text\":\"${{env.DAY_OF_WEEK}}\"}]", "say ref: ${{ github.ref }}", "say ip ${{ secrets.rcon_server }}", "say actor ${{ github.actor }}", "reload"]'
|
||||
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Lukas Scheuerle
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -4,10 +4,13 @@ Integrate RCON actions into your github workflow.
|
||||
|
||||
Originally created and intended to be used for a more automated use of minecraft datapacks, in tandem with the [FTP Deploy](https://github.com/marketplace/actions/ftp-deploy) action. See [this file](https://github.com/Plagiatus/YeggsMapjam2021/blob/main/.github/workflows/main.yml) for a working example of a combination of these two.
|
||||
|
||||
To set up with your Minecraft Server via FTP, copy the [linked example file](https://github.com/Plagiatus/YeggsMapjam2021/blob/main/.github/workflows/main.yml) to `your_repository/.github/workflow/main.yml`, update and add the [secrets](https://docs.github.com/en/actions/reference/encrypted-secrets) to your repository and you're ready to go. That is if your server has both FTP and RCON enabled.
|
||||
|
||||
## Example Action File
|
||||
|
||||
[File in this repository](https://github.com/Plagiatus/RCON-Action/blob/main/.github/workflows/main.yml)
|
||||
|
||||
|
||||
```yml
|
||||
name: RCON Test
|
||||
|
||||
@@ -42,4 +45,9 @@ jobs:
|
||||
| send-push-info | no | Whether a tellraw informing about the push should be sent | `true` | |
|
||||
| push-info-recipient | no | Changes the selector of the push info tellraw. | `@a` | `@a[tag=admin]` |
|
||||
|
||||
It is highly recommended to use [github secrets](https://docs.github.com/en/actions/reference/encrypted-secrets) instead of plaintext inclusions for more sensitive data like the IP or the password.
|
||||
It is highly recommended to use [github secrets](https://docs.github.com/en/actions/reference/encrypted-secrets) instead of plaintext inclusions for more sensitive data like the IP or the password.
|
||||
|
||||
## Credits
|
||||
|
||||
- Node-RCON taken from https://github.com/tehbeard/node-rcon by @tehbeard.
|
||||
- RCON-Action made by @Plagiatus
|
||||
+7
-4
@@ -1,5 +1,5 @@
|
||||
name: Send RCON commands
|
||||
description: Send command(s) via RCON connection to a RCON server
|
||||
name: Send RCON commands to minecraft server
|
||||
description: Send command(s) via RCON connection to a RCON enabled minecraft server
|
||||
inputs:
|
||||
server:
|
||||
required: true
|
||||
@@ -24,5 +24,8 @@ inputs:
|
||||
description: Changes the selector of who should be getting the server info.
|
||||
default: "@a"
|
||||
runs:
|
||||
using: node12
|
||||
main: index.js
|
||||
using: node16
|
||||
main: index.js
|
||||
branding:
|
||||
icon: arrow-right-circle
|
||||
color: green
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 Tehbeard
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Reference in New Issue
Block a user