-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathshared-build-template-and-commit-themes.yml
More file actions
42 lines (37 loc) · 1.27 KB
/
shared-build-template-and-commit-themes.yml
File metadata and controls
42 lines (37 loc) · 1.27 KB
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
name: "Build template and commit theme updates"
on:
workflow_call:
inputs:
ref:
description: "Git hash reference"
type: "string"
required: true
secrets:
token:
description: "GitHub Access Token"
required: true
jobs:
run:
runs-on: "ubuntu-latest"
steps:
- name: "Fetch the repository code"
uses: "actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08" # 4.1.7
with:
token: ${{ secrets.token }}
ref: ${{ inputs.ref }}
- name: "Install tinted-builder-rust"
uses: "jaxxstorm/action-install-gh-release@v1.10.0"
with: # Get the latest release
repo: "tinted-theming/tinted-builder-rust"
- name: "Update schemes"
run: |
tinted-builder-rust sync
tinted-builder-rust build .
- name: "Commit the changes, if any"
uses: "stefanzweifel/git-auto-commit-action@be823a7e51f116fecebc222b8307716921375992" # 5.0.1
with:
commit_message: "Update with the latest tinted-theming colorschemes"
branch: ${{ inputs.ref }}
commit_user_name: "tinted-theming-bot"
commit_user_email: "tintedtheming@proton.me"
commit_author: "tinted-theming-bot <tintedtheming@proton.me>"