web/.forgejo/workflows/web.yaml

26 lines
738 B
YAML
Raw Normal View History

2024-12-03 15:26:11 +01:00
on: [push]
jobs:
automate-ifc:
runs-on: self-hosted
steps:
- name: Install checkout
uses: https://github.com/actions/checkout@v4
with:
fetch-depth: 0 # OR "2" -> To retrieve the preceding commit.
- name: Get changed files
id: changed-files
uses: https://github.com/tj-actions/changed-files@v42
- name: Do computations
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
if [[ ! -d web ]]
then
git clone https://git.forgeons.org/rvba/web
fi
cd web && git pull
cd scripts
for file in ${ALL_CHANGED_FILES}; do
./web.sh "$file"