From 5363a3688476faa221628a4749d99b3311782a23 Mon Sep 17 00:00:00 2001 From: Felipe Suero <85468376+felipesu19@users.noreply.github.com> Date: Tue, 18 Jan 2022 12:50:31 -0500 Subject: [PATCH] Update release --- script/release | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/script/release b/script/release index 2384d768..09310e6a 100755 --- a/script/release +++ b/script/release @@ -1,13 +1,13 @@ #!/bin/sh -# check that gh is installed and logged in - -gh auth status -h github.com - # Tag and push a release. set -e +# check that gh is installed and logged in + +gh auth status -h github.com + # Make sure we're in the project root. cd $(dirname "$0")/.. @@ -56,8 +56,8 @@ mkdir -p tmp #for each dependent repo, create a new branch an a blank pr. # first get the sha of main for each repo -gh_pages_sha = gh api repos/github/pages/git/refs/heads/master | jq '. | .object.sha' -jekyll_sha = gh api repos/actions/jekyll-build-pages/git/refs/heads/main | jq '. | .object.sha' +gh_pages_sha=`gh api repos/github/pages/git/refs/heads/master | jq '. | .object.sha'` +jekyll_sha=`gh api repos/actions/jekyll-build-pages/git/refs/heads/main | jq '. | .object.sha'` # then create the branches @@ -66,8 +66,8 @@ gh api repos/github/pages/git/refs -F "sha"="$jekyll_sha" -F "ref"="refs/heads/p #then we need the tree object so we can create a commit using the api -gh_pages_tree = gh api repos/github/pages/git/commits/$gh_pages_sha | jq '. | .tree.sha' -jekyll_tree = gh api repos/github/actions/jekyll-build-pages/commits/$jekyll_sha | jq '. | .tree.sha' +gh_pages_tree=`gh api repos/github/pages/git/commits/$gh_pages_sha | jq '. | .tree.sha'` +jekyll_tree=`gh api repos/github/actions/jekyll-build-pages/commits/$jekyll_sha | jq '. | .tree.sha'` # create the input file for the commit. We have to do this because the F flag doesn't support arrays @@ -76,8 +76,8 @@ echo "{\"tree\": \"$jekyll_tree\", \"parents\": [\"$jekyll_sha\"], \"message\": # create the commit -new_gh_pages_sha = gh api repos/github/pages/git/commits --input tmp/gh_pages_commit_input.json | jq '. | .sha' -new_jekyll_sha = gh api repos/actions/jekyll-build-pages/git/commits --input tmp/jekyll_commit_input.json | jq '. | .sha' +new_gh_pages_sha=`gh api repos/github/pages/git/commits --input tmp/gh_pages_commit_input.json | jq '. | .sha'` +new_jekyll_sha=`gh api repos/actions/jekyll-build-pages/git/commits --input tmp/jekyll_commit_input.json | jq '. | .sha'` # associate the commit with the branch @@ -90,4 +90,4 @@ gh pr create --base "main" --head "pages-gem-release-$tag" --title "Bump pages- # clean up the input file for the commit -rm tmp/* \ No newline at end of file +rm tmp/*