Skip to content

Commit

Permalink
push to private (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankrb committed Oct 8, 2024
1 parent cb474ba commit 4e37a91
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/push-to-private.yml
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

0 comments on commit 4e37a91

Please sign in to comment.