attribute-spass/.forgejo/workflows/push.yml

25 lines
741 B
YAML
Raw Normal View History

2023-10-16 16:43:01 +00:00
on: [push]
jobs:
2023-10-16 17:35:29 +00:00
ls:
runs-on: docker
2023-10-16 18:08:28 +00:00
container:
2023-10-16 19:49:56 +00:00
image: git.php.fail/lubiana/container/php:8.2.11-node
2023-10-16 17:03:17 +00:00
steps:
2023-10-16 19:51:55 +00:00
- uses: actions/checkout@v3
2023-10-16 18:08:28 +00:00
- run: env | sort
2023-10-16 19:49:56 +00:00
- run: composer install
2023-10-16 19:55:59 +00:00
- run: composer fix
2023-10-16 19:59:20 +00:00
- name: GIT commit and push all changed files
env:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
CI_COMMIT_AUTHOR: Continuous Integration
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
2023-10-16 20:11:05 +00:00
if [[ -n $(git status --porcelain) ]]; then
2023-10-16 20:07:41 +00:00
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
fi
2023-10-16 19:59:20 +00:00
2023-10-16 18:23:35 +00:00