Add IAE Lyon as a community partner and update contact details for ES… #56
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: Push to Fork (kryptosphere-dev) | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| sync-to-fork: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up SSH | |
| run: | | |
| mkdir -p ~/.ssh | |
| echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_ed25519 | |
| chmod 600 ~/.ssh/id_ed25519 | |
| ssh-keyscan github.com >> ~/.ssh/known_hosts | |
| - name: Set Git config | |
| run: | | |
| git config --global user.name "GitHub Action" | |
| git config --global user.email "[email protected]" | |
| - name: Make change (example) | |
| run: | | |
| echo "Last pushed at $(date -u)" > version.txt | |
| git add version.txt | |
| - name: Remove workflows from commit | |
| run: | | |
| git restore --staged .github/workflows || true | |
| git restore .github/workflows || true | |
| - name: Commit if needed | |
| run: | | |
| git diff --cached --quiet || git commit -m "Update version file at $(date -u)" | |
| - name: Push to kryptosphere-dev | |
| run: | | |
| git remote add fork [email protected]:kryptosphere-dev/kryptosphere-website.git | |
| git push fork main --force |