Improve GitHub Actions automations

This commit is contained in:
monosans
2024-02-02 15:51:24 +03:00
parent 2222233987
commit 25bebd68a2
3 changed files with 14 additions and 10 deletions
+8 -4
View File
@@ -2,7 +2,7 @@ name: Update dependencies
on:
workflow_dispatch:
schedule:
- cron: 30 3 * * *
- cron: 30 1 * * *
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
@@ -21,12 +21,16 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: ${{ matrix.cmd }}
- id: generate-token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}
- uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT }}
token: ${{ steps.generate-token.outputs.token }}
commit-message: ${{ matrix.commit-msg }}
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
branch: ${{ matrix.branch }}
delete-branch: true
title: ${{ matrix.commit-msg }}
body: