add copybara file and the associated workflow #12
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
name: Sync rocm/jax with jax-ml/jax | |
on: | |
workflow_dispatch: | |
pull_request: | |
schedule: | |
- cron: '0 12 * * *' # Runs every day | |
jobs: | |
upstream_pr: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- run: | | |
mkdir -p ~/.ssh | |
ssh-keyscan github.com >> ~/.ssh/known_hosts | |
- run: | | |
echo "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com" >> ~/.git-credentials | |
- run: | | |
echo "${{ secrets.SSH_KEY }}" >> ~/.ssh/id_rsa | |
- run: | | |
docker run -t --rm -v$HOME/.ssh:/root/.ssh -v $HOME/.git-credentials:/root/.git-credentials -v $GITHUB_WORKSPACE/build/rocm/copy.bara.sky:/data/copy.bara.sky -e COPYBARA_CONFIG=/data/copy.bara.sky sharelatex/copybara bash -c "git config --global user.name jaxbara; git config --global user.email [email protected]; copybara" |