Skip to content

Commit c593efb

Browse files
committed
chore: update development dependencies and configuration files
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
1 parent 3591521 commit c593efb

3 files changed

Lines changed: 12 additions & 9 deletions

File tree

.github/workflows/release-changelog.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
contents: write
1515
steps:
1616
- name: Update notes
17+
#language=bash
1718
run: |
18-
TAG="${{ github.ref_name }}"
19+
TAG="${GITHUB_REF_NAME}"
1920
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
20-
NEW_NOTES=$(gh api --method POST -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/releases/generate-notes -f tag_name=${{ github.ref_name }} | jq -r '.body')
21-
RELEASE_ID=$(gh api -H "Accept: application/vnd.github+json" /repos/${{ github.repository }}/releases/tags/${{ github.ref_name }} | jq -r '.id')
22-
gh api --method PATCH -H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/releases/$RELEASE_ID" -f "body=$NEW_NOTES"
21+
NEW_NOTES=$(gh api --method POST -H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/releases/generate-notes" -f "tag_name=${GITHUB_REF_NAME}" | jq -r '.body')
22+
RELEASE_ID=$(gh api -H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/releases/tags/${GITHUB_REF_NAME}" | jq -r '.id')
23+
gh api --method PATCH -H "Accept: application/vnd.github+json" "/repos/${{ github.repository }}/releases/${RELEASE_ID}" -f "body=$NEW_NOTES"
2324
fi
2425
env:
2526
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
RELEASE_TAG: ${{ github.event.release.tag_name }}

.github/workflows/renovate-custom-hooks.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ jobs:
1717
runs-on: ubuntu-latest
1818
permissions:
1919
contents: read
20-
if: github.repository_owner == 'jkroepke' && (github.actor == 'renovate[bot]' || github.actor == 'mend[bot]')
20+
if: github.repository_owner == 'jkroepke' && github.event.pull_request.user.login == 'renovate[bot]'
2121
steps:
2222
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2323
with:
2424
fetch-depth: 0
25+
persist-credentials: false
2526

2627
# Using a GitHub App token, because GitHub Actions doesn't run on commits from github-actions bot
2728
# Used App:

.github/workflows/update-major-tag.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ jobs:
1515
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
with:
1717
persist-credentials: 'false'
18-
- run: |
19-
TAG="${{ github.ref_name }}"
18+
19+
- name: Push major tag
20+
#language=bash
21+
run: |
22+
TAG="${GITHUB_REF_NAME}"
2023
if [[ "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
21-
TAG="${{ github.ref_name }}"
2224
TAG="${TAG%%.*}"
2325
git tag -f "${TAG}"
2426
git push --tags --force

0 commit comments

Comments
 (0)