Add git export workflow for se-lex/sfs repository#30
Merged
Conversation
Implements a simple weekly workflow that exports SFS data to the se-lex/sfs git repository. Features: - Weekly schedule (Sunday 03:00 UTC) or manual trigger - Two export modes: - "changed": Export only files modified in last 7 days (incremental) - "all": Export all files or filtered by year range (full rebuild) - Auto-generates dated branch names (export-YYYY-MM-DD) - Includes both initial commits (utfärdad datum) and temporal commits (ikraft/upphör) - Uses existing GIT_GITHUB_PAT secret for authentication - Reads data from workflow-artifact-data branch Usage: - Automatic: Runs weekly to export new/changed files - Manual: Actions tab → Run workflow → Choose export mode Target: se-lex/sfs repository (configured via GIT_TARGET_REPO env var) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
565feff to
03c9e40
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Översikt
Lägger till en ny workflow för att exportera SFS-data till
se-lex/sfsgit repository.Funktioner
changed: Exporterar bara filer ändrade senaste 7 dagarna (inkrementell)all: Exporterar alla filer eller filtrerat på år-intervall (full rebuild)export-YYYY-MM-DDautomatisktData-källa
workflow-artifact-databranchdata/sfs_json/ochdata/md-markers/Säkerhet
GIT_GITHUB_PATsecret för autentiseringse-lex/sfs.gitTestning
För att testa denna workflow:
changed(för test med senaste veckans filer)export-YYYY-MM-DDskapas ise-lex/sfsrepoRelaterade filer
.github/workflows/git-export-workflow.yml- Ny workflowexporters/git/batch_export_to_git.py- Använd export script (ingen ändring)🤖 Generated with Claude Code