-
Notifications
You must be signed in to change notification settings - Fork 21
49 lines (48 loc) · 1.9 KB
/
notify-discord.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Notify Discord & Bump Version
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Discord Message Notify Arkadia
uses: appleboy/discord-action@0.0.3
with:
username: Rafgart
avatar_url: https://arkadia.rpg.pl/forum/download/file.php?avatar=88_1235778613.jpg
webhook_id: ${{ secrets.ARKADIA_WEBHOOK_ID }}
webhook_token: ${{ secrets.ARKADIA_WEBHOOK_TOKEN }}
message: Nowa wersja skryptów [${{ github.event.release.tag_name }}] jest dostępna. Szczegóły - ${{ github.event.release.html_url }}
- name: Discord Message Notify Skrypty
uses: appleboy/discord-action@0.0.3
with:
username: Rafgart
avatar_url: https://arkadia.rpg.pl/forum/download/file.php?avatar=88_1235778613.jpg
webhook_id: ${{ secrets.SKRYPTY_WEBHOOK_ID }}
webhook_token: ${{ secrets.SKRYPTY_WEBHOOK_TOKEN }}
message: Nowa wersja skryptów [${{ github.event.release.tag_name }}] jest dostępna. Szczegóły - ${{ github.event.release.html_url }}
- name: Checkout repo
uses: actions/checkout@v2
- name: Bump Version
run: python ./.github/workflows/bump_version.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
base: "master"
branch: "version-bump"
delete-branch: true
title: 'version bump'
body: 'version bump'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Arkadia installer xml to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ArkadiaScriptsInstaller.xml
asset_name: ArkadiaScriptsInstaller.xml
tag: ${{ github.ref }}
overwrite: true