File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -103,13 +103,14 @@ jobs:
103103 PYTHON_VERSION=${{ steps.python-version.outputs.PYTHON_VERSION }}
104104 sed -r "s/- chromium [0-9.]+/- chromium ${CHROME_VERSION}/g; s/- chromedriver [0-9.]+/- chromedriver ${DRIVER_VERSION}/g; s/- selenium [0-9.]+/- selenium ${SELENIUM_VERSION}/g; s/- Python [0-9.]+/- Python ${PYTHON_VERSION}/g" -i README.md
105105 - name : Detect changes
106+ id : detect-changes
106107 run : |
107108 DO_RELEASE="yes"
108109 git --no-pager diff --name-only | grep -q "README.md" || DO_RELEASE="no"
109110 git --no-pager diff --name-only | grep -q "Dockerfile" || DO_RELEASE="no"
110111 echo "DO_RELEASE=${DO_RELEASE}" >> $GITHUB_OUTPUT
111112 - name : Release
112- if : ${{ env. DO_RELEASE == " yes" && !env.ACT }}
113+ if : ${{ steps.detect-changes.outputs. DO_RELEASE == ' yes' && !env.ACT }}
113114 run : |
114115 BRANCH=$(date +%Y-%m-%d-%H%M%S)
115116 TITLE="Version Updates $(date)"
@@ -122,7 +123,7 @@ jobs:
122123 gh pr merge --delete-branch --merge $BRANCH
123124 gh release create $BRANCH --notes-file /tmp/body-text.txt --title "${TITLE}"
124125 - name : Publish image
125- if : ${{ env. DO_RELEASE == " yes" && !env.ACT }}
126+ if : ${{ steps.detect-changes.outputs. DO_RELEASE == ' yes' && !env.ACT }}
126127 run : |
127128 echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
128129 PYTHON_VERSION=${{ steps.python-version.outputs.PYTHON_VERSION }}
You can’t perform that action at this time.
0 commit comments