Skip to content

Commit

Permalink
ci: override workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Dec 15, 2024
1 parent e0bd549 commit caae055
Showing 1 changed file with 60 additions and 0 deletions.
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 Action'
git config --global user.email '[email protected]'
- 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 caae055

Please sign in to comment.