-
Notifications
You must be signed in to change notification settings - Fork 6
66 lines (58 loc) · 1.91 KB
/
checkGameForUpdates.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
60
61
62
63
64
65
66
name: Update GameLibs
on:
workflow_dispatch:
inputs:
game:
description: Name of game folder in `Games` directory
required: true
type: string
workflow_call:
inputs:
game:
required: true
type: string
jobs:
game-update-check:
name: Check ${{ inputs.game }} for outdated package versions
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
buildIds: ${{ steps.check-versions.outputs.outdated-version-buildIds }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Setup SteamCMD
uses: Lordfirespeed/setup-steamcmd@v2
- name: Authenticate SteamCMD
uses: Lordfirespeed/auth-steamcmd@v1
with:
steam_config_vdf: ${{ secrets.steam_config_vdf }}
steam_username: ${{ secrets.steam_username }}
- name: Configure Git
run: |
git config user.email "[email protected]"
git config user.name "GitHub Action"
- name: Check versions up-to-date
id: check-versions
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
./build.sh --target CheckPackageVersionsUpToDate --game ${{ inputs.game }} --steam-username ${{ secrets.steam_username }}
dispatch-game-version-package-updates:
needs: game-update-check
if: ${{ needs.game-update-check.outputs.buildIds != '[]' && needs.game-update-check.outputs.buildIds != '' }}
strategy:
matrix:
buildId: ${{ fromJson(needs.game-update-check.outputs.buildIds) }}
fail-fast: false
uses: ./.github/workflows/updateGameVersionPackage.yml
with:
game: ${{ inputs.game }}
buildId: ${{ matrix.buildId }}
secrets: inherit