Skip to content

Commit

Permalink
Create update-front-end-repo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vcheckzen committed Sep 19, 2024
1 parent a6ba9ab commit b48c6e8
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/update-front-end-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update Front End Repository

on:
workflow_dispatch:

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: fodi

- name: Checkout front-end repo
uses: actions/checkout@v4
with:
repository: vcheckzen/FODI-FRONT-END
token: ${{ secrets.PAT }}
path: fodi-front-end

- name: Push
run: |
cd fodi-front-end || exit 1
if ! diff -q ../fodi/front-end/index.html index.html; then
cp ../fodi/front-end/index.html index.html
git config user.name github-actions
git config user.email github-actions@github.com
git add .
git commit -m "sync with main repo"
git push
fi

0 comments on commit b48c6e8

Please sign in to comment.