26 lines
738 B
YAML
26 lines
738 B
YAML
|
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"
|
||
|
|