From cb257179fe1b11e8e662df0452882b875f5d1191 Mon Sep 17 00:00:00 2001 From: Mike Richards Date: Tue, 15 Aug 2023 15:44:00 -0700 Subject: [PATCH] Update README again --- README.md | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index cd3490c..95bfeaf 100644 --- a/README.md +++ b/README.md @@ -25,29 +25,11 @@ jobs: publish-if-new-version: runs-on: ubuntu-latest steps: - - name: Checkout with previous commit for pyproject.toml comparison - uses: actions/checkout@v3 - with: - # get previous commit so we can compare pyproject.toml below - fetch-depth: 2 - - - name: Check pyproject.toml version to see if a new release is necessary - run: | - set -x # print commands and their arguments as they are executed - diff=$(git diff HEAD:pyproject.toml HEAD~1:pyproject.toml) || exit 0 - echo "$diff" | grep '+version =' - if [[ $? -ne 0 ]]; - then - echo 'version in pyproject.toml did not change - not publishable' - exit 1 - fi - - - name: Publish new package - uses: UWIT-IAM/action-release-py-package@v1 + - name: Publish if new package + uses: 'uwit-iam/action-release-py-package@main' with: pypi: "${{ vars.IAM_GAR_PYPI }}" credentials: "${{ secrets.MCI_GCLOUD_AUTH_JSON }}" - ``` # Expectations