We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 886a42c commit ae918d7Copy full SHA for ae918d7
.github/workflows/create-git-branch.yml
@@ -0,0 +1,24 @@
1
+on: push
2
+jobs:
3
+ build:
4
+ runs-on: ubuntu-latest
5
+ steps:
6
+ - uses: actions/checkout@v3
7
+ - id: get_date
8
+ name: Get date
9
+ run: |
10
+ current_date=$(date -u "+%Y%m%d%H%M%S")
11
+ echo "current_date=$current_date" >> $GITHUB_OUTPUT
12
+
13
+ - name: Create git branch
14
15
+ echo ${{steps.get_date.outputs.current_date}} > auto-generated-${{steps.get_date.outputs.current_date}}.txt
16
+ git config user.name "GitHub Action"
17
+ git config user.email "action@github.com"
18
+ git config --add push.default current
19
+ git config --add push.autoSetupRemote true
20
21
+ git checkout -b our-github-actions/${{steps.get_date.outputs.current_date}}
22
+ git add .
23
+ git commit -m "auto commit at ${{steps.get_date.outputs.current_date}}"
24
+ git push
0 commit comments