Skip to content

test rc contentful

test rc contentful #19

Workflow file for this run

name: Build files and push
on:
repository_dispatch:
push:
branches: [ main ]
paths:
- 'template/README.jinja2'
- 'template/variables1.json'
- 'apps/*/variables.json'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Get changed files
id: getfile
run: |
git diff --name-only HEAD^ HEAD
echo "VARIABLES_FILES=$(git diff --name-only HEAD^ HEAD -- 'apps/*/variables.json' | tr '\n' ',' | sed 's/,$//')" >> $GITHUB_ENV
- name: Run variables_files.py
run: python3 build/variables_files.py "${{ env.VARIABLES_FILES }}"
if: env.VARIABLES_FILES != ''
- name: Commit and push if changed
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "Update files"
commit_options: "--no-verify --signoff"
push_options: "--force-with-lease"