Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
timqi committed Dec 6, 2024
1 parent 4ae98ab commit 5697a10
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/timqi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,17 @@ jobs:
echo "[Error] Due to a change in the workflow file of the upstream repository, GitHub has automatically suspended the scheduled automatic update. You need to manually sync your fork. Please refer to the detailed tutorial for instructions: https://github.com/Yidadaa/ChatGPT-Next-Web#enable-automatic-updates"
exit 1
- name: New commits found
if: steps.sync.outputs.has_new_commits == 'true'
run: echo "new_commits=true" >> $GITHUB_ENV

- name: Log in to Docker Hub
uses: docker/login-action@v2
if: env.new_commits == 'true'
# if: steps.sync.outputs.has_new_commits == 'true'
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v4
if: env.new_commits == 'true'
# if: steps.sync.outputs.has_new_commits == 'true'
with:
images: timqi/chatgpt-next-web
tags: |
Expand All @@ -62,7 +58,7 @@ jobs:
- name: Build and push Docker image
uses: docker/build-push-action@v4
if: env.new_commits == 'true'
# if: steps.sync.outputs.has_new_commits == 'true'
with:
context: .
platforms: linux/amd64
Expand Down

0 comments on commit 5697a10

Please sign in to comment.