Skip to content

Commit 9f40be8

Browse files
committed
Add workflow to register bot
1 parent 4a5deb6 commit 9f40be8

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/workflow.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Register Bot
2+
3+
on:
4+
workflow_dispatch: # Manually trigger this
5+
6+
jobs:
7+
register:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- name: Create and push to temp branch
13+
run: |
14+
git config user.name "github-actions[bot]"
15+
git config user.email "github-actions[bot]@users.noreply.github.com"
16+
git checkout -b temp-bot-registration
17+
echo "This is a test file to register the bot" > bot-test.txt
18+
git add bot-test.txt
19+
git commit -m "Register github-actions bot"
20+
git push origin temp-bot-registration

0 commit comments

Comments
 (0)