Skip to content

Commit be8adc7

Browse files
committed
feat: workflow to update the mirror github repository.
This adds a new script update-mirror that will run every day and is meant to keep the github repository in sync with the one on crysp.
1 parent 0e18923 commit be8adc7

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Update Mirror
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Runs daily at midnight UTC
6+
workflow_dispatch: # Allows manual trigger
7+
8+
jobs:
9+
update-mirror:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
token: ${{ secrets.GITHUB_TOKEN }}
18+
19+
- name: Configure Git
20+
run: |
21+
git config user.name "github-actions[bot]"
22+
git config user.email "github-actions[bot]@users.noreply.github.com"
23+
24+
- name: Run update mirror script
25+
run: ./update-mirror

update-mirror

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
git pull https://git-crysp.uwaterloo.ca/SigmaProtocol/sigma-compiler main --tags
6+
git push origin main --tags

0 commit comments

Comments
 (0)