37 lines
1.4 KiB
YAML
37 lines
1.4 KiB
YAML
name: Prepare release for chill app
|
|
run-name: Update composer.lock and dependencies for preparing a release
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'release/**'
|
|
|
|
jobs:
|
|
update-deps:
|
|
steps:
|
|
- name: check out repository
|
|
uses: https://github.com/actions/checkout@v4
|
|
- name: read local files
|
|
run: ls -lah
|
|
- name: echo workspace env
|
|
run: echo ${{ gitea.workspace }}
|
|
- name: run composer update to update composer.lock
|
|
uses: https://github.com/addnab/docker-run-action@v3
|
|
with:
|
|
run: |
|
|
ls -lah
|
|
echo {$PWD}
|
|
composer list
|
|
sleep 90
|
|
composer update
|
|
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
|
|
# add an option to mount the workspace inside the path /var/www/app, where the workdir is
|
|
options: --volume ${{ gitea.workspace }}:/work --workdir /work
|
|
# - name: commit changed files
|
|
# uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|
|
# with:
|
|
# commit_message: "update composer.lock and file (automatic update)"
|
|
# commit_user_name: Action Bot
|
|
# commit_user_email: bot@chill.social
|
|
#
|