Skip to content

Commit

Permalink
Add scheduled action to update composer.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Dec 20, 2022
1 parent 46dc390 commit ae05db7
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build docker image

on:
push:
branches:
- main

schedule:
- cron: '0 2 * * *'

pull_request:

jobs:
update-composer-lock:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- name: Update lock file
uses: php-actions/composer@v6
with:
command: composer install -n
- name: Commit changes
run: |
git commit -am "Update composer.lock file"
git push

0 comments on commit ae05db7

Please sign in to comment.