Push to upstream #116
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
# Workflow manually triggered to push fork to upstream | |
name: Push to upstream | |
on: | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Push PR to upstream <username>:<branch>' | |
default: '' | |
required: true | |
jobs: | |
push: | |
runs-on: ubuntu-latest | |
steps: | |
- name: push-upstream | |
run: | | |
eval "$(ssh-agent -s)" | |
ssh-add - <<< "${{ secrets.GH_ACTION_SSH_KEY }}" | |
mkdir -p ~/.ssh | |
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts | |
git config --global user.name "Github Action" | |
git config --global user.email "[email protected]" | |
mkdir bin | |
GPF_INSTALL_LOCATION=bin/git-push-fork-to-upstream-branch | |
GPF_URL=https://raw.githubusercontent.com/mozilla/git-push-fork-to-upstream-branch/master/git-push-fork-to-upstream-branch | |
sudo curl -sL $GPF_URL > $GPF_INSTALL_LOCATION | |
chmod 755 $GPF_INSTALL_LOCATION | |
export GPF_USE_SSH=true | |
git clone [email protected]:mozilla/bigquery-etl.git | |
cd bigquery-etl | |
../bin/git-push-fork-to-upstream-branch \ | |
[email protected]:mozilla/bigquery-etl.git \ | |
${{ github.event.inputs.name }} |