Skip to content

Commit

Permalink
Fix branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
merrkry committed Dec 2, 2024
1 parent a6af344 commit afaf0ec
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: Mirror from declaratia

permissions: write-all

on:
schedule:
- cron: "0 0 * * *"
Expand All @@ -10,6 +12,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- run: |
git config --global user.name 'GitHub Action'
git config --global user.email '[email protected]'
- uses: actions/setup-python@v5
with:
python-version: "3.13"
Expand All @@ -24,20 +30,25 @@ jobs:
repository: merrkry/declaratia
fetch-depth: 0
path: declaratia
ref: master
token: ${{ secrets.PAT }}

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

- run: |
python git-filter-repo/git-filter-repo --path flake.lock --invert-paths --force
cd declaratia
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
rm -rf declaratia/.github/workflows
mkdir -p declaratia/.github/workflows
cp -r decalratia/.github/workflows/* declaratia/.github/workflows/
cd declaratia
git add .github/workflows
git commit -m "Override workflows"
- run: |
Expand Down

0 comments on commit afaf0ec

Please sign in to comment.