-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (35 loc) · 1.17 KB
/
save-nightly-modpack-history.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
name: Save nightly modpack history
on:
workflow_call:
workflow_dispatch:
jobs:
save-nightly-modpack-history:
name: Save nightly modpack history
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
ref: master
- name: Ensure Dependencies
uses: ./.github/actions/ensure-dependencies
- name: Download nightly
uses: ./.github/actions/download-nightly
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
directory: .nightly-temp
- name: Save nightly modpack history
run: >-
poetry run python main.py action save-nightly-modpack-history
--modpack-path='.nightly-temp/nightly' --subdirectory='nightly-history'
env:
# Required by system validation but actually unused
PARATRANZ_TOKEN: -1
PARATRANZ_PROJECT_ID: -1
TARGET_LANG: "en_US"
- name: Push commit
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config pull.rebase true
git pull origin master
git push origin master