Merge pull request #48 from ethosengine/claude/split-keen-json-collec… #134
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
| name: Template Setup | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| setup: | |
| # Only run if this is NOT the template repo | |
| if: github.run_number == 1 && github.repository != 'ethosengine/che-starter' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Replace template variables | |
| run: | | |
| REPO_URL="${{ github.server_url }}/${{ github.repository }}" | |
| sed -i "s|{{GITHUB_REPO_URL}}|$REPO_URL|g" README.md | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add README.md | |
| git commit -m "Initialize from template" || exit 0 | |
| git push |