Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
merrkry committed Dec 2, 2024
1 parent 5b96359 commit a6af344
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
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

- uses: actions/checkout@v3
with:
repository: merrkry/decalratia
fetch-depth: 0
path: decalratia

- run: |
python git-filter-repo/git-filter-repo --path flake.lock --invert-paths --force
- run: |
rm -r 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

0 comments on commit a6af344

Please sign in to comment.