Commit a4cfeecd authored by lavalamp's avatar lavalamp Committed by GitHub

ci: Workflow for pushing to releases/staging (#6319)

* Initial draft of releases/staging force push

* Rename

* Update PAT, test on PR target

* Remove pull request target, add environment

* Update .github/workflows/push-staging.yml
Co-authored-by: default avatarZach Pomerantz <zzmp@uniswap.org>

* Update .github/workflows/push-staging.yml
Co-authored-by: default avatarZach Pomerantz <zzmp@uniswap.org>

* Update .github/workflows/push-staging.yml
Co-authored-by: default avatarZach Pomerantz <zzmp@uniswap.org>

* comments

* Update step name

---------
Co-authored-by: default avatarZach Pomerantz <zzmp@uniswap.org>
parent 76cbfdd0
name: 1 | Push main to releases/staging
# This CI job is responsible for pushing the current contents of the `main` branch to the
# `releases/staging` branch, which will in turn kick off a deploy to the staging environment.
on:
workflow_dispatch:
# https://stackoverflow.com/questions/57921401/push-to-origin-from-github-action
jobs:
push-staging:
name: 'Push to staging branch'
runs-on: ubuntu-latest
environment:
name: release
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab
with:
token: ${{ secrets.RELEASE_SERVICE_ACCESS_TOKEN }}
ref: main
- name: Git push
run: |
git config user.name "UL Service Account"
git config user.email "hello-happy-puppy@users.noreply.github.com"
git push origin main:releases/staging --force
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment