-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (49 loc) · 1.54 KB
/
exec.yml
File metadata and controls
52 lines (49 loc) · 1.54 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
43
44
45
46
47
48
49
50
51
52
name: Kam Exec
permissions:
contents: write
actions: read
on:
workflow_dispatch:
inputs:
kam-command:
description: Command to run
required: false
type: string
default: kam version patch && kam build -a -s -r
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup kam
uses: MemDeco-WG/setup-kam@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
enable-cache: "true"
private-key: ${{ secrets.KAM_PRIVATE_KEY }}
- name: Verify kam installation
run: kam --version
- name: Run kam command
shell: bash
run: |
git submodule update --init --recursive
git submodule update --remote --merge --recursive
kam build --help
rm -rf dist
chmod +x hooks/**/*
chmod +x src/**/*
echo "Executing: ${{ github.event.inputs.kam-command }}"
${{ github.event.inputs.kam-command }}
env:
GH_TOKEN: ${{ github.token }}
- name: Auto-commit changes
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: |
chore: apply config - Template: ${{ github.event.inputs.template-url || 'No template' }} - Command: ${{ github.event.inputs.init-command || github.event.inputs.kam-command }}
file_pattern: |
*
push_options: --force-with-lease
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}