-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 824 Bytes
/
commit.yaml
File metadata and controls
36 lines (28 loc) · 824 Bytes
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
name: do commit
on:
workflow_dispatch:
jobs:
runcy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: ⚙️ Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: commit
run: |
B_NAME="$(uuidgen)"
PR_NUMBER=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
echo 'a' >> text1.text
git add -A
git commit -m "test: empty"
git push
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- name: Auto-Approve
uses: hmarr/auto-approve-action@v2
with:
github-token: ${{ secrets.GH_TOKEN }}