Skip to content

made dynamically generated cards more flexible, maintainable, and hav… #64

made dynamically generated cards more flexible, maintainable, and hav…

made dynamically generated cards more flexible, maintainable, and hav… #64

Workflow file for this run

name: Sync Workflow Files to strongdog2 Master Branch
on:
push:
branches:
- master
paths:
- 'winner.html'
- 'strongdog.webp'
- 'robots.txt'
- 'intro.html'
- 'index.html'
- 'favs.html'
- 'ads.txt'
- 'about.html'
- 'signup.html'
- 'login.html'
- 'settings.html'
- 'about-page-data.js'
- 'appscript.js'
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
# Checkout the source repository (jman1593.github.io) on the master branch
- name: Checkout Source Repository (master branch)
uses: actions/checkout@v3
with:
repository: jman1593/jman1593.github.io
ref: master # Specify the master branch
path: source
# Checkout the destination repository (strongdog2) on the master branch
- name: Checkout Destination Repository (master branch)
uses: actions/checkout@v3
with:
repository: jman1593/strongdog2
ref: master # Specify the master branch
path: destination
token: ${{ secrets.TOKEN }}
# Copy the specified files from source to destination
- name: Copy Files
run: |
cp -r source/winner.html destination/
cp -r source/strongdog.webp destination/
cp -r source/robots.txt destination/
cp -r source/intro.html destination/
cp -r source/index.html destination/
cp -r source/favs.html destination/
cp -r source/ads.txt destination/
cp -r source/about.html destination/
cp -r source/signup.html destination/
cp -r source/login.html destination/
cp -r source/settings.html destination/
cp -r source/about-page-data.js destination/
cp -r source/appscript.js destination/
# Commit and push the changes to the destination repository (master branch)
- name: Commit and Push Changes
run: |
cd destination
git config --global user.email "[email protected]"
git config --global user.name "GitHub Action"
git add winner.html strongdog.webp robots.txt intro.html index.html favs.html ads.txt about.html login.html signup.html settings.html about-page-data.js appscript.js
git commit -m "Sync files from jman1593.github.io (master branch)"
git push origin master # Push to the master branch