-
Notifications
You must be signed in to change notification settings - Fork 104
59 lines (50 loc) · 1.66 KB
/
dev.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
50
51
52
53
54
55
56
57
58
59
name: Dev Release
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs every midnight UTC
jobs:
check:
runs-on: ubuntu-latest
outputs:
has-new-commits: ${{ steps.check-new-commits.outputs.has-new-commits }}
new-commits-number: ${{ steps.check-new-commits.outputs.new-commits-number }}
steps:
- name: Check if there are any new commits
id: check-new-commits
uses: adriangl/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
seconds: 86400
branch: 'dev-Tomcat'
release:
runs-on: ubuntu-latest
needs: check
if: needs.check.outputs.has-new-commits == 'true'
steps:
- name: Checkout the source code
uses: actions/checkout@v4
- name: Fetch merged PRs
run: |
git log --pretty=format:"%s by %an" -n ${{ needs.check.outputs.new-commits-number }} --no-merges > merged_prs.txt
cat merged_prs.txt
shell: bash
- name: Install Arma 3 Tools
uses: arma-actions/arma3-tools@master
with:
toolsUrl: ${{ secrets.ARMA3_TOOLS_URL }}
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Run HEMTT release
run: hemtt release
- name: Rename release folder
run: mv .hemttout/release .hemttout/@kat
- name: Update to Steam Workshop (dev)
uses: arma-actions/workshop-upload@v1
with:
itemId: '2841189207'
contentPath: '.hemttout/@kat'
changelog: '$(cat merged_prs.txt)'
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}