Skip to content

Commit 33c9a1c

Browse files
committed
fixup! fixup! ci: 🤖 use github actions
1 parent b08e4f8 commit 33c9a1c

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/auto-update.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,25 @@ jobs:
109109
git --no-pager diff --name-only | grep -q "README.md" || DO_RELEASE="no"
110110
git --no-pager diff --name-only | grep -q "Dockerfile" || DO_RELEASE="no"
111111
echo "DO_RELEASE=${DO_RELEASE}" >> $GITHUB_OUTPUT
112+
- name: Setup git config
113+
run: |
114+
# https://qiita.com/thaim/items/3d1a4d09ec4a7d8844ce
115+
git config user.name "github-actions[bot]"
116+
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
112117
- name: Release
113118
if: ${{ steps.detect-changes.outputs.DO_RELEASE == 'yes' && !env.ACT }}
114119
run: |
115120
BRANCH=$(date +%Y-%m-%d-%H%M%S)
116121
TITLE="Version Updates $(date)"
117122
git checkout -b $BRANCH
118123
git add Dockerfile README.md
119-
echo "```diff\n$(git diff --staged)\n```" > /tmp/body-text.txt
124+
echo "SHA256_DIGEST=${{ steps.docker-image-digest.outputs.SHA256_DIGEST }}" > /tmp/body-text.txt
125+
echo "POSITION=${{ steps.chromium-versions.outputs.POSITION }}" >> /tmp/body-text.txt
126+
echo "DRIVER_VERSION=${{ steps.chromedriver-version.outputs.DRIVER_VERSION }}" >> /tmp/body-text.txt
127+
echo "PYTHON_VERSION=${{ steps.python-version.outputs.PYTHON_VERSION }}" >> /tmp/body-text.txt
128+
echo "SELENIUM_VERSION=${{ steps.selenium-version.outputs.SELENIUM_VERSION }}" >> /tmp/body-text.txt
129+
echo "CHROME_VERSION=${{ steps.chrome-version.outputs.CHROME_VERSION }}" >> /tmp/body-text.txt
130+
echo "\n```diff\n$(git diff --staged)\n```" >> /tmp/body-text.txt
120131
git commit -m "${TITLE}"
121132
git push --set-upstream origin $BRANCH
122133
gh pr create --body-file /tmp/body-text.txt --title "PR:${TITLE}"

0 commit comments

Comments
 (0)