New ๐ŸŒŠ wave for @helm

Commit a5af0c5b

a5af0c5b9990Merged

Dmitriy Zhilyaev <[email protected]> ยท 2 years ago ยท 1 file ยท ~1 modified

Description

Merge branch 'main' into dependabot/go_modules/github.com/prometheus/client_golang-1.20.3

Details

Commit
a5af0c5b9990
Parent
96ea9dd1f9d9
Merge parent
8d8fb5fb0cbc

.github/workflows/dependabot.ymlmodifiedView file

@@ -9,6 +9,7 @@
99 contents: write
1010 pull-requests: write
1111
12+
1213 jobs:
1314 dependabot:
1415 runs-on: ubuntu-latest
@@ -18,22 +19,25 @@
1819 with:
1920 fetch-depth: 1
2021
21- - name: Fetch Dependabot metadata
22- id: dependabot
22+ - id: dependabot
2323 uses: dependabot/fetch-metadata@v2
2424
25- - uses: miniscruff/changie-action@v2
26- id: changelog
25+ - name: generate changelog
26+ uses: miniscruff/changie-action@v2
2727 if: github.actor == 'dependabot[bot]'
2828 with:
2929 version: latest
3030 args: |
3131 new -k Dependencies -b "${{ github.event.pull_request.title }}" -m Issue=${{ github.event.number }} -m Author=dependabot
3232
33- - uses: stefanzweifel/git-auto-commit-action@v5
33+ - name: push changelog
34+ uses: stefanzweifel/git-auto-commit-action@v5
3435 if: github.actor == 'dependabot[bot]'
3536 with:
36- commit_message: "fix: changie"
37+ commit_message: "chore: add changelog via changie #${{ github.event.number }}"
38+ commit_user_name: ${{ github.actor }}
39+ commit_user_email: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
40+
3741 #
3842 # dependabot-base:
3943 # if: ${{ startsWith(github.event.pull_request.head.ref, 'dependabot/') }}
@@ -51,29 +55,51 @@
5155 env:
5256 TAG: ${{ steps.version.outputs.output }}
5357
58+ - uses: wow-actions/use-app-token@v2
59+ id: token
60+ with:
61+ app_id: ${{ secrets.GH_APP_ID }}
62+ private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
63+
64+
5465
5566 - name: create release branch
67+ uses: actions/github-script@v7
5668 continue-on-error: true
57- run: |
58- git config user.name "github-actions[bot]"
59- git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
60- git checkout main
61- git checkout -b $BRANCH
62- git push origin $BRANCH
6369 env:
6470 BRANCH: release/${{ steps.next.outputs.version }}
71+ with:
72+ github-token: ${{ steps.token.outputs.BOT_TOKEN }}
73+ script: |-2
74+ const main = await github.rest.git.getRef({
75+ owner: context.repo.owner,
76+ repo: context.repo.repo,
77+ ref: 'heads/main',
78+ })
79+
80+ const ref = {
81+ owner: context.repo.owner,
82+ repo: context.repo.repo,
83+ ref: 'heads/' + process.env.BRANCH,
84+ sha: main.data.object.sha,
85+ }
86+
87+ await github.rest.git.createRef(ref)
88+ result-encoding: string
6589
66- - name: change main to release branch
67- run: gh pr edit ${{ github.event.number }} -B $BRANCH --remove-reviewer helmwave/maintainers --add-assignee "@me"
90+
91+
92+ - name: main to release branch
93+ run: gh pr edit ${{ github.event.number }} -B $BRANCH
6894 env:
6995 BRANCH: release/${{ steps.next.outputs.version }}
7096 GH_TOKEN: ${{ github.token }}
7197
7298 - name: approve & merge
7399 run: |
74- gh pr review ${{ github.event.number }} -a -c LGTM
100+ gh pr review ${{ github.event.number }} --approve -b "LGTM ๐Ÿคช"
75101 gh pr merge ${{ github.event.number }} --auto --merge
76102 env:
77103 BRANCH: release/${{ steps.next.outputs.version }}
78- GH_TOKEN: ${{ github.token }}
104+ GH_TOKEN: ${{ steps.token.outputs.BOT_TOKEN }} # merge via helmwave[bot]
79105