Skip to content

Commit 3119628

Browse files
committed
Update README and Workflow
1 parent eab43dc commit 3119628

File tree

2 files changed

+26
-7
lines changed

2 files changed

+26
-7
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
name: Test action
1+
name: Sync with Panel
22

33
on:
44
push:
5-
branches: ["master"]
6-
7-
workflow_dispatch:
5+
branches:
6+
- master
87

98
jobs:
10-
build:
9+
sync:
1110
runs-on: ubuntu-latest
1211
steps:
13-
- name: Restart server
14-
uses: hwalker928/[email protected]
12+
- uses: hwalker928/ptero-gitsync@v1
1513
with:
1614
panel-url: ${{ secrets.PANEL_URL }}
1715
api-key: ${{ secrets.API_KEY }}

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,24 @@
33
ptero-gitsync is a GitHub Action for synchronizing a GitHub repository with a Pterodactyl® Panel server.
44

55
**Note:** ptero-gitsync is not affiliated with the Pterodactyl® Project.
6+
7+
## Usage
8+
9+
```yml
10+
name: Sync with Panel
11+
12+
on:
13+
push:
14+
branches:
15+
- master
16+
17+
jobs:
18+
sync:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: hwalker928/ptero-gitsync@v1
22+
with:
23+
panel-url: ${{ secrets.PANEL_URL }}
24+
api-key: ${{ secrets.API_KEY }}
25+
server-id: ${{ secrets.SERVER_ID }}
26+
```

0 commit comments

Comments
 (0)