Skip to content

Mirror from declaratia #8

Mirror from declaratia

Mirror from declaratia #8

Workflow file for this run

name: Mirror from declaratia
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: actions/checkout@v3
with:
repository: newren/git-filter-repo
path: git-filter-repo
- uses: actions/checkout@v3
with:
repository: merrkry/declaratia
fetch-depth: 0
path: declaratia
ref: master
token: ${{ secrets.PAT }}
- uses: actions/checkout@v3
with:
repository: merrkry/decalratia
path: decalratia
ref: master
- run: |
cd declaratia
python ../git-filter-repo/git-filter-repo --path flake.lock --invert-paths --force
- run: |
rm -rf declaratia/.github/workflows
cp -r decalratia/.github/workflows declaratia/.github/workflows
git add declaratia/.github/workflows
git commit -m "Override workflows"
- run: |
cd declaratia
git remote add public https://github.com/merrkry/decalratia.git
git push public master --force