Skip to content

Commit 77c1c80

Browse files
authored
Merge pull request #171 from umihico/fix/publishing-image-2023-05-26
Fix publishing docker image
2 parents 05b8e5a + 6cf8b9a commit 77c1c80

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/auto-update.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
1719
- name: Install serverless
1820
run: npm install -g serverless
1921
- name: Note docker image digest
@@ -126,8 +128,8 @@ jobs:
126128
echo "DRIVER_VERSION=${{ steps.chromedriver-version.outputs.DRIVER_VERSION }}" >> /tmp/body-text.txt
127129
echo "PYTHON_VERSION=${{ steps.python-version.outputs.PYTHON_VERSION }}" >> /tmp/body-text.txt
128130
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
131+
echo -e "CHROME_VERSION=${{ steps.chrome-version.outputs.CHROME_VERSION }}\n\n" >> /tmp/body-text.txt
132+
git diff --staged >> /tmp/body-text.txt
131133
git commit -m "${TITLE}"
132134
git push --set-upstream origin $BRANCH
133135
gh pr create --body-file /tmp/body-text.txt --title "PR:${TITLE}"
@@ -137,6 +139,9 @@ jobs:
137139
GH_TOKEN: ${{ github.token }}
138140
- name: Publish image
139141
if: ${{ steps.detect-changes.outputs.DO_RELEASE == 'yes' && !env.ACT }}
142+
env:
143+
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
144+
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
140145
run: |
141146
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
142147
PYTHON_VERSION=${{ steps.python-version.outputs.PYTHON_VERSION }}

0 commit comments

Comments
 (0)