File tree 4 files changed +12
-13
lines changed
4 files changed +12
-13
lines changed Original file line number Diff line number Diff line change 27
27
name : Merge tag
28
28
29
29
steps :
30
+ - uses : actions/create-github-app-token@v1
31
+ id : app-token
32
+ with :
33
+ app-id : ${{ vars.GHA_APP_ID }}
34
+ private-key : ${{ secrets.GHA_PRIVATE_KEY }}
35
+
30
36
- name : Determine branch
31
37
run : |
32
38
echo 'BRANCH='${{ inputs.branch || 'staging' }} >> $GITHUB_ENV
37
43
ref : ${{ env.BRANCH }}
38
44
fetch-tags : true
39
45
fetch-depth : 0
40
-
41
- - uses : actions/create-github-app-token@v1
42
- id : app-token
43
- with :
44
- app-id : ${{ vars.GHA_APP_ID }}
45
- private-key : ${{ secrets.GHA_PRIVATE_KEY }}
46
+ token : ${{ steps.app-token.outputs.token }}
46
47
47
48
- name : Get GitHub App User ID
48
49
if : ${{ github.event_name == 'release' }}
78
79
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
79
80
ACCOUNT_ID : ${{ github.actor_id }}
80
81
81
- - name : Merge tag to local "${{ env.BRANCH }}" branch
82
+ - name : Merge tag to "${{ env.BRANCH }}" branch
82
83
run : |
83
84
git config --local user.email "$GIT_USER_EMAIL"
84
85
git config --local user.name "$GIT_USER_NAME"
85
86
git merge ${{ inputs.tag || github.event.release.tag_name }}
86
-
87
- - name : Push merge to repository's "${{ env.BRANCH }}" branch
88
-
89
- with :
90
- github_token : ${{ steps.app-token.outputs.token }}
91
- branch : ${{ env.BRANCH }}
87
+ git push
Original file line number Diff line number Diff line change 15
15
- name : Checkout code
16
16
uses : actions/checkout@v4
17
17
with :
18
+ ref : dev
18
19
fetch-depth : 0
19
20
20
21
- name : Set up Git
Original file line number Diff line number Diff line change 15
15
- name : Checkout code
16
16
uses : actions/checkout@v4
17
17
with :
18
+ ref : production
18
19
fetch-depth : 0
19
20
20
21
- name : Set up Git
Original file line number Diff line number Diff line change 15
15
- name : Checkout code
16
16
uses : actions/checkout@v4
17
17
with :
18
+ ref : staging
18
19
fetch-depth : 0
19
20
20
21
- name : Set up Git
You can’t perform that action at this time.
0 commit comments