File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : Trunk CI
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - main
8
+ pull_request :
9
+ branches :
10
+ - main
11
+
12
+ permissions :
13
+ contents : write
14
+
15
+ jobs :
16
+ build :
17
+ uses : ./.github/workflows/workflow.yml
18
+ with :
19
+ python-version : ' 3.12'
20
+ secrets :
21
+ DB_USER : ${{ secrets.DB_USER }}
22
+ DB_PASSWORD : ${{ secrets.DB_PASSWORD }}
23
+ DB_NAME : ${{ secrets.DB_NAME }}
24
+
25
+ release :
26
+ name : Create Release Tag
27
+ if : github.event_name == 'push' && github.ref == 'refs/heads/main'
28
+ needs : build
29
+ runs-on : ubuntu-latest
30
+
31
+ steps :
32
+ - name : Checkout code
33
+ uses : actions/checkout@v4
34
+
35
+ - name : Create release tag
36
+ env :
37
+ GIT_TAG : " v$(date +'%Y.%m.%d.%H%M')"
38
+ run : |
39
+ git config user.name "github-actions[bot]"
40
+ git config user.email "github-actions[bot]@users.noreply.github.com"
41
+ git tag $GIT_TAG
42
+ git push origin $GIT_TAG
You can’t perform that action at this time.
0 commit comments