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: write1010
pull-requests: write1111
12+
1213
jobs:1314
dependabot:1415
runs-on: ubuntu-latest@@ -18,22 +19,25 @@
1819
with:1920
fetch-depth: 12021
21-
- name: Fetch Dependabot metadata22-
id: dependabot22+
- id: dependabot2323
uses: dependabot/fetch-metadata@v22424
25-
- uses: miniscruff/changie-action@v226-
id: changelog25+
- name: generate changelog26+
uses: miniscruff/changie-action@v22727
if: github.actor == 'dependabot[bot]'2828
with:2929
version: latest3030
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@v533+
- name: push changelog34+
uses: stefanzweifel/git-auto-commit-action@v53435
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@v259+
id: token60+
with:61+
app_id: ${{ secrets.GH_APP_ID }}62+
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}63+
64+
5465
5566
- name: create release branch67+
uses: actions/github-script@v75668
continue-on-error: true57-
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 main61-
git checkout -b $BRANCH62-
git push origin $BRANCH6369
env:6470
BRANCH: release/${{ steps.next.outputs.version }}71+
with:72+
github-token: ${{ steps.token.outputs.BOT_TOKEN }}73+
script: |-274+
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: string6589
66-
- name: change main to release branch67-
run: gh pr edit ${{ github.event.number }} -B $BRANCH --remove-reviewer helmwave/maintainers --add-assignee "@me"90+
91+
92+
- name: main to release branch93+
run: gh pr edit ${{ github.event.number }} -B $BRANCH6894
env:6995
BRANCH: release/${{ steps.next.outputs.version }}7096
GH_TOKEN: ${{ github.token }}7197
7298
- name: approve & merge7399
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 --merge76102
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