Skip to content

Commit

Permalink
fix: update dependencies pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
progsource authored Nov 16, 2024
1 parent ee4b0cc commit 798863e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/update-dependencies.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Update dependency versions

permissions:
contents: write
pull-requests: write

on:
schedule:
# This cron expression runs the job at 00:00 UTC on the first day of every month
Expand Down Expand Up @@ -38,13 +42,13 @@ jobs:
git config --local user.name "github-actions"
git config --local user.email "[email protected]"
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
if: env.changed == 'changed'
if: steps.check_changes.outputs.changed == 'true'
run: |
git commit -m "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:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 798863e

Please sign in to comment.