Skip to content

Commit b08e4f8

Browse files
committed
fixup! ci: 🤖 use github actions
1 parent 675d007 commit b08e4f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/auto-update.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff 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 }}

0 commit comments

Comments
 (0)