ADD set the timezone inside the base roles so all the machines are on… #3
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: EpitechCI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| env: | |
| GH_PUB_KEY: | |
| github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl | |
| GH_BOT_ACC_EMAIL: | |
| 41898282+github-actions[bot]@users.noreply.github.com | |
| GH_BOT_ACC_NAME: | |
| github-actions[bot] | |
| jobs: | |
| sync_repository: | |
| if: ${{ (!github.event.pull_request) && (vars.GH_TARGET_REPO) }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install SSH key | |
| uses: shimataro/ssh-key-action@v2 | |
| with: | |
| key: ${{ secrets.GH_SSH_PRIVATE_KEY }} | |
| known_hosts: $GH_PUB_KEY | |
| - name: Setup git | |
| run: | | |
| git config --global user.email "savinien.petitjean@epitech.eu" | |
| git config --global user.name "savalet" | |
| git remote add target "${{ vars.GH_TARGET_REPO }}" | |
| - name: Create the verbatim branch | |
| run: | | |
| git checkout -b main || git checkout main | |
| git push --set-upstream target main --force |