Skip to content

Commit

Permalink
Fix and update broken mirror workflow:
Browse files Browse the repository at this point in the history
- Update Ubuntu environment (18.04 is deprecated)
- Update checkout action (Node.js 12 actions are deprecated)
- Update mirror action (0.4.0 -> 0.6.0): this fixes the mirror workflow
- Change fetch depth to 0: Default is 1, but with 0 we get all history
  for all branches and tags.
  • Loading branch information
DanielKotik committed Dec 29, 2022
1 parent 76c10f5 commit c70559c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ on: [push, delete]

jobs:
mirror-to-CASUS:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: mirror-repository
uses: spyoungtech/mirror-action@v0.4.0
uses: spyoungtech/mirror-action@v0.6.0
with:
REMOTE: git@github.com:casus/atoMEC.git
REMOTE: 'ssh://git@github.com/casus/atoMEC.git'
GIT_SSH_PRIVATE_KEY: ${{ secrets.GIT_SSH_KEY }}
GIT_SSH_NO_VERIFY_HOST: "true"
DEBUG: "true"

0 comments on commit c70559c

Please sign in to comment.