Skip to content

Update index.php.src #12

Update index.php.src

Update index.php.src #12

Workflow file for this run

name: Builder
on:
push:
paths:
- 'source/**'
- index.php.src
- .github/workflows/build.yml
branches:
- main
tags-ignore:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: cp index.php index.orig.php && php build/builder.php
- name: Check Changes
id: change
run: (diff index.php index.orig.php && echo "changed=false" >> "$GITHUB_OUTPUT") || echo "changed=true" >> "$GITHUB_OUTPUT"
- name: Commit & Push
if: steps.change.outputs.changed == 'true'
run: |
git config --global user.name 'Hints Builder'
git config --global user.email '[email protected]'
git add "index.php"
git commit -m "Updated index.php"
git push