From 14492e31ea1ec4041a80ccb4a444296902748171 Mon Sep 17 00:00:00 2001 From: Slava <20563034+veaceslavdoina@users.noreply.github.com> Date: Tue, 13 Feb 2024 03:46:20 +0200 Subject: [PATCH] Adjust workflows for changelog generation (#5) --- .github/workflows/changelog.yml | 17 +++++++++++++---- .github/workflows/ci.yml | 12 +++++++++--- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 95d2fa9..64d68f7 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -5,6 +5,7 @@ on: branches: - master + jobs: changelog: name: Generate changelog @@ -12,17 +13,25 @@ jobs: permissions: contents: write steps: + - name: Create Token + id: create_token + uses: tibdex/github-app-token@v2 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: "✏️ Generate release changelog" uses: heinrichreimer/action-github-changelog-generator@v2.3 - with: - token: ${{ secrets.GITHUB_TOKEN }} - name: Commit CHANGELOG.md - uses: stefanzweifel/git-auto-commit-action@v4 + uses: planetscale/ghcommit-action@v0.1.33 with: + repo: ${{ github.repository }} branch: master commit_message: 'docs: update CHANGELOG.md for ${{ github.ref_name }} [skip ci]' file_pattern: CHANGELOG.md + env: + GITHUB_TOKEN: ${{ steps.create_token.outputs.token }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3451949..5aa5cf8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - master + pull_request: jobs: test: @@ -11,12 +15,14 @@ jobs: nim: [1.6.16, stable] steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 + - name: Install Nim - uses: iffy/install-nim@v3 + uses: iffy/install-nim@v4 with: version: ${{ matrix.nim }} - name: Build run: nimble install -y + - name: Test run: nimble test -y