Skip to content

Commit

Permalink
Update push-to-private.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult authored Oct 8, 2024
1 parent d640913 commit f6e37ab
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/push-to-private.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,13 @@ jobs:
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote add private https://x-access-token:${{ secrets.SYNC_TOKEN }}@github.com/ecmwf/anemoi-datasets-private.git
- name: env
run:
env | sort
- name: Setup SSH key
uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.KEY_TO_PRIVATE }}

- name: Push changes to private repository
run: |
git remote rm origin
git remote add origin https://x-access-token:${{ secrets.SYNC_TOKEN }}@github.com/ecmwf/anemoi-datasets-private.git
git push --set-upstream origin develop
git remote add private git@github.com:ecmwf/anemoi-datasets-private.git
git push --set-upstream private develop

0 comments on commit f6e37ab

Please sign in to comment.