-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cb474ba
commit 4e37a91
Showing
1 changed file
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: Push to another repository | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
push_changes: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout source repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Git configuration | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "github-actions[bot]@users.noreply.github.com" | ||
- name: env | ||
run: | | ||
env | sort | ||
- name: clone | ||
run: | | ||
git clone https://${{ secrets.MLX_TOKEN }}@github.com/ecmwf-lab/anemoi-datasets-private.git check-clone | ||
- name: set-url | ||
run: | | ||
git remote set-url origin https://${{ secrets.MLX_TOKEN }}@github.com/ecmwf-lab/anemoi-datasets-private.git | ||
- name: fetch | ||
run: | | ||
git remote set-url origin https://${{ secrets.MLX_TOKEN }}@github.com/ecmwf-lab/anemoi-datasets-private.git | ||
git fetch | ||
- name: Push changes to private repository | ||
run: | | ||
git remote set-url origin https://${{ secrets.MLX_TOKEN }}@github.com/ecmwf-lab/anemoi-datasets-private.git | ||
git fetch | ||
git push develop | ||
# name: Push to another repository | ||
# | ||
# on: | ||
# push: | ||
# branches: | ||
# - develop | ||
# | ||
# jobs: | ||
# push_changes: | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - name: Checkout source repository | ||
# uses: actions/checkout@v3 | ||
# | ||
# - name: Set up Git configuration | ||
# run: | | ||
# git config user.name "github-actions[bot]" | ||
# git config user.email "github-actions[bot]@users.noreply.github.com" | ||
# | ||
# - name: env | ||
# run: | | ||
# env | sort | ||
# | ||
# - name: clone | ||
# run: | | ||
# git clone https://${{ secrets.MLX_TOKEN }}@github.com/ecmwf-lab/anemoi-datasets-private.git check-clone | ||
# | ||
# - name: set-url | ||
# run: | | ||
# git remote set-url origin https://${{ secrets.MLX_TOKEN }}@github.com/ecmwf-lab/anemoi-datasets-private.git | ||
# | ||
# - name: fetch | ||
# run: | | ||
# git remote set-url origin https://${{ secrets.MLX_TOKEN }}@github.com/ecmwf-lab/anemoi-datasets-private.git | ||
# git fetch | ||
# | ||
# - name: Push changes to private repository | ||
# run: | | ||
# git remote set-url origin https://${{ secrets.MLX_TOKEN }}@github.com/ecmwf-lab/anemoi-datasets-private.git | ||
# git fetch | ||
# git push develop |