Skip to content

Commit

Permalink
💬 - Files Synced | Runner ID : 122 | ⚡ Triggered By fuelviews/github-…
Browse files Browse the repository at this point in the history
…workflow-sync
  • Loading branch information
Workflow Sync Bot committed Nov 13, 2024
1 parent 0742018 commit 9e7bade
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 22 deletions.
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ updates:
directory: '/'
schedule:
interval: 'weekly'
ignore:
- dependency-name: "ralphjsmit/laravel-glide"
target-branch: main
- package-ecosystem: 'github-actions'
directory: '/'
Expand Down
31 changes: 9 additions & 22 deletions .github/workflows/update-changelog.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Update Changelog
name: "Update Changelog"

on:
workflow_dispatch:

release:
types: [released]

Expand All @@ -12,34 +10,23 @@ permissions:
jobs:
update:
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 5

steps:
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v4
with:
application_id: ${{ vars.FUELVIEWS_BOT_APP_ID}}
application_private_key: ${{ secrets.FUELVIEWS_BOT_APP_PRIVATE_KEY }}

- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
token: ${{ steps.get_workflow_token.outputs.token }}
ref: 'main'

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Amend latest commit with updated CHANGELOG
run: |
git config user.name "fuelviews-app[bot]"
git config user.email "fuelviews-app[bot]@users.noreply.github.com"
git add CHANGELOG.md
git commit --amend --no-edit
git push origin main --force-with-lease
env:
GITHUB_TOKEN: ${{ steps.get_workflow_token.outputs.token }}
- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md

0 comments on commit 9e7bade

Please sign in to comment.