Skip to content

Commit

Permalink
Merge pull request #43 from terraform-docs/fix-pre-release
Browse files Browse the repository at this point in the history
Update docker tag in action.yml on release
  • Loading branch information
khos2ow authored May 18, 2021
2 parents a0ffe6b + 83c614b commit 63c4589
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 63c4589

Please sign in to comment.