chill-skeleton-basic/.gitea/workflows/release_preparation.yaml

37 lines
1.4 KiB
YAML
Raw Normal View History

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
2023-10-24 15:00:53 +00:00
- name: read local files
run: ls -lah
2023-10-24 15:05:43 +00:00
- name: echo workspace env
run: echo ${{ gitea.workspace }}
2023-10-24 14:46:54 +00:00
- name: run composer update to update composer.lock
2023-10-24 14:51:20 +00:00
uses: https://github.com/addnab/docker-run-action@v3
with:
2023-10-24 14:54:07 +00:00
run: |
2023-10-24 15:01:36 +00:00
ls -lah
2023-10-24 14:56:01 +00:00
echo {$PWD}
2023-10-24 15:06:44 +00:00
composer list
2023-10-24 15:09:37 +00:00
sleep 90
2023-10-24 14:54:07 +00:00
composer update
2023-10-24 14:51:20 +00:00
image: gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest
2023-10-24 14:57:39 +00:00
# add an option to mount the workspace inside the path /var/www/app, where the workdir is
2023-10-24 15:03:44 +00:00
options: --volume ${{ gitea.workspace }}:/work --workdir /work
2023-10-24 14:46:12 +00:00
# - 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
#