feat(ci): push directly to main branch on vega.xyz

This commit is contained in:
Mikołaj Młodzikowski 2023-05-12 17:40:52 +02:00
parent 0358ce6293
commit 15d6ea0c05

View File

@ -216,12 +216,12 @@ jobs:
git add interstitial-allow.json netlify.toml git add interstitial-allow.json netlify.toml
commit_msg="feat(ci): Update CID for console release @ ${{ github.ref }}" commit_msg="feat(ci): Update CID for console release @ ${{ github.ref }}"
git commit -m "${commit_msg}" git commit -m "${commit_msg}"
# git push origin main git push origin main
branch_name=${{ github.ref_name }}-hash-update # branch_name=${{ github.ref_name }}-hash-update
git checkout -b "${branch_name}" # git checkout -b "${branch_name}"
git add interstitial-allow.json netlify.toml # git add interstitial-allow.json netlify.toml
git push -u origin "${branch_name}" # git push -u origin "${branch_name}"
pr_url="$(gh pr create --title "${commit_msg}" --body 'update ipfs hash for console @ ${{ github.ref }}')" # pr_url="$(gh pr create --title "${commit_msg}" --body 'update ipfs hash for console @ ${{ github.ref }}')"
echo $pr_url # echo $pr_url
gh pr merge --admin --auto $pr_url # gh pr merge --admin --auto $pr_url