generated from React-Avancado/boilerplate-tailwind
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1019 Bytes
/
commit-empty.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
name: Commit Empty
on:
workflow_call:
inputs:
count:
description: 'Number of retries'
required: true
type: number
default: 1
workflow_dispatch:
inputs:
count:
description: 'Number of retries'
required: true
type: number
default: 1
jobs:
commit:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub Apps token
id: generate
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- name: Checkout Repository
uses: actions/checkout@v4
with:
token: ${{ steps.generate.outputs.token }}
- name: Commit Empty
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git commit --allow-empty -m "ci: run ${{ github.event.inputs.count }} time(s)"
git push