mirror of
https://github.com/progsource/maddy.git
synced 2026-03-24 23:40:39 +01:00
fix: update dependencies pipeline
This commit is contained in:
10
.github/workflows/update-dependencies.yml
vendored
10
.github/workflows/update-dependencies.yml
vendored
@@ -1,5 +1,9 @@
|
|||||||
name: Update dependency versions
|
name: Update dependency versions
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
# This cron expression runs the job at 00:00 UTC on the first day of every month
|
# This cron expression runs the job at 00:00 UTC on the first day of every month
|
||||||
@@ -38,13 +42,13 @@ jobs:
|
|||||||
git config --local user.name "github-actions"
|
git config --local user.name "github-actions"
|
||||||
git config --local user.email "github-actions@github.com"
|
git config --local user.email "github-actions@github.com"
|
||||||
git add .
|
git add .
|
||||||
git diff --cached --exit-code || echo "changed" >> $GITHUB_ENV
|
git diff --cached --exit-code || echo "changed=true" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: env.changed == 'changed'
|
if: steps.check_changes.outputs.changed == 'true'
|
||||||
run: |
|
run: |
|
||||||
git commit -m "Update dependency versions"
|
git commit -m "Update dependency versions"
|
||||||
git push origin HEAD:update-dependency-versions
|
git push origin HEAD:update-dependency-versions
|
||||||
gh pr create --base main --head update-dependency-versions --title "Update dependency versions" --body "This pull request updates the dependency versions in files."
|
gh pr create --base master --head update-dependency-versions --title "Update dependency versions" --body "This pull request updates the dependency versions in files."
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user