Skip to content

Commit

Permalink
Update docker tag in action.yml on release
Browse files Browse the repository at this point in the history
Signed-off-by: Khosrow Moossavi <[email protected]>
  • Loading branch information
khos2ow committed May 18, 2021
1 parent a0ffe6b commit 83c614b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions scripts/pre-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ else
exit 1
fi

# Update the README
# Update README
VERSION=$NEW_VERSION gomplate -d action="${PWD}"/../action.yml -f "${PWD}"/../.github/templates/README.tpl -o "${PWD}"/../README.md

git add "${PWD}"/../README.md
# Update action.yml
sed -i "s|docker://quay.io/terraform-docs/gh-actions:edge|docker://quay.io/terraform-docs/gh-actions:${NEW_VERSION//v/}|g" "${PWD}"/../action.yml

git add "${PWD}"/../README.md "${PWD}"/../action.yml
git commit -s -m "chore: prepare release ${NEW_VERSION}"
git push --set-upstream origin "release/${NEW_VERSION}"

0 comments on commit 83c614b

Please sign in to comment.