Skip to content

Commit

Permalink
ci: override workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jan 24, 2025
1 parent 6112706 commit 3fed576
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 26 deletions.
26 changes: 0 additions & 26 deletions .github/workflows/cache.yaml

This file was deleted.

60 changes: 60 additions & 0 deletions .github/workflows/mirror.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Mirror from declaratia

permissions: write-all

on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
sync:
runs-on: ubuntu-latest

steps:
- run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- 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
mkdir -p declaratia/.github/workflows
cp -r decalratia/.github/workflows/* declaratia/.github/workflows/
cd declaratia
git add .github/workflows
git commit -m "ci: override workflows"
- uses: ad-m/github-push-action@master
with:
branch: master
force: true
directory: declaratia
repository: merrkry/decalratia
github_token: ${{ secrets.PAT }}

0 comments on commit 3fed576

Please sign in to comment.