File tree Expand file tree Collapse file tree 3 files changed +75
-0
lines changed Expand file tree Collapse file tree 3 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Auto merge dependabot prs
2
+
3
+ on :
4
+ pull_request :
5
+ types : [opened, reopened]
6
+
7
+ jobs :
8
+ auto-merge :
9
+ name : Auto merge dependabot prs
10
+ runs-on : ubuntu-latest
11
+ if : github.actor == 'dependabot[bot]'
12
+ steps :
13
+ - uses : GitHubSecurityLab/actions-permissions/monitor@v1
14
+ with :
15
+ config : ${{ vars.PERMISSIONS_CONFIG }}
16
+ - name : Set Apix Bot token
17
+ id : app-token
18
+ uses : mongodb/apix-action/token@3024080388613583e3bd119bfb1ab4b4dbf43c42
19
+ with :
20
+ app-id : ${{ secrets.APIXBOT_APP_ID }}
21
+ private-key : ${{ secrets.APIXBOT_APP_PEM }}
22
+ - name : Auto merge PR
23
+ env :
24
+ GH_TOKEN : ${{ steps.app-token.outputs.token }}
25
+ run : |
26
+ gh pr merge "${{ github.event.pull_request.html_url }}" --auto --squash
Original file line number Diff line number Diff line change
1
+ name : Update dist for dependabot prs
2
+
3
+ on :
4
+ pull_request
5
+
6
+ jobs :
7
+ update-dist :
8
+ name : Update dist folders
9
+ runs-on : ubuntu-latest
10
+ if : github.actor == 'dependabot[bot]'
11
+ steps :
12
+ - uses : GitHubSecurityLab/actions-permissions/monitor@v1
13
+ with :
14
+ config : ${{ vars.PERMISSIONS_CONFIG }}
15
+ - name : Set Apix Bot token
16
+ id : app-token
17
+ uses : mongodb/apix-action/token@3024080388613583e3bd119bfb1ab4b4dbf43c42
18
+ with :
19
+ app-id : ${{ secrets.APIXBOT_APP_ID }}
20
+ private-key : ${{ secrets.APIXBOT_APP_PEM }}
21
+ - name : Checkout code
22
+ uses : actions/checkout@v4.1.1
23
+ with :
24
+ ref : ${{ github.head_ref }}
25
+ token : ${{ steps.app-token.outputs.token }}
26
+ fetch-depth : 0
27
+ - uses : actions/setup-node@v4
28
+ with :
29
+ node-version-file : ' create-jira/package.json'
30
+ - run : |
31
+ cd verify-changed-files
32
+ npm run build
33
+ cd ../create-jira
34
+ npm run build
35
+ - name : Commit dist
36
+ run : |
37
+ echo "Changes to dist files:"
38
+ if git diff --exit-code verify-changed-files/dist create-jira/dist; then
39
+ echo "No changes to dist folders"
40
+ else
41
+ git config --global user.name "${{ steps.app-token.outputs.user-name }}"
42
+ git config --global user.email "${{ steps.app-token.outputs.user-email }}"
43
+ git add verify-changed-files/dist create-jira/dist
44
+ git commit -m "chore: update dist folders"
45
+ git push origin "${{ github.head_ref }}"
46
+ fi
Original file line number Diff line number Diff line change 36
36
"ts-jest" : " ^29.1.0" ,
37
37
"typescript" : " ^5.8.3" ,
38
38
"typescript-eslint" : " ^8.38.0"
39
+ },
40
+ "engines" : {
41
+ "node" : " >=20"
39
42
}
40
43
}
You can’t perform that action at this time.
0 commit comments