Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
Fix auto-release not triggering Docker build workflow (#4579)
Shuchang Zheng67d3479d0c31
diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.ymlindex 89f51790d..8f89f1efd 100644--- a/.github/workflows/auto-release.yml+++ b/.github/workflows/auto-release.yml@@ -93,4 +93,6 @@ jobs:prerelease: falsegenerate_release_notes: trueenv:- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}+ # Using PAT instead of GITHUB_TOKEN to trigger downstream workflows (e.g., build-docker-image)+ # GITHUB_TOKEN events don't trigger other workflows to prevent infinite loops+ GITHUB_TOKEN: ${{ secrets.SKYVERN_OSS_GITHUB_TOKEN }}diff --git a/.github/workflows/build-docker-image.yml b/.github/workflows/build-docker-image.ymlindex 1d8e9e0d5..d60a978c1 100644--- a/.github/workflows/build-docker-image.yml+++ b/.github/workflows/build-docker-image.yml@@ -2,6 +2,12 @@ name: Build Docker Image and Push to ECRon:release:types: [published]+ workflow_dispatch:+ inputs:+ tag_name:+ description: 'Tag name for the release (e.g., v1.0.11)'+ required: true+ type: stringenv:AWS_REGION: us-east-1ECR_BACKEND_REPOSITORY: skyvern@@ -50,10 +56,10 @@ jobs:cache-to: type=gha,mode=maxtags: |${{ env.ECR_REGISTRY}}/${{ env.REGISTRY_ALIAS }}/${{ env.ECR_BACKEND_REPOSITORY }}:${{ github.sha }}- ${{ env.ECR_REGISTRY}}/${{ env.REGISTRY_ALIAS }}/${{ env.ECR_BACKEND_REPOSITORY }}:${{ github.event.release.tag_name }}+ ${{ env.ECR_REGISTRY}}/${{ env.REGISTRY_ALIAS }}/${{ env.ECR_BACKEND_REPOSITORY }}:${{ inputs.tag_name || github.event.release.tag_name }}${{ env.ECR_REGISTRY}}/${{ env.REGISTRY_ALIAS }}/${{ env.ECR_BACKEND_REPOSITORY }}:latest${{ env.DOCKERHUB_USERNAME }}/${{ env.ECR_BACKEND_REPOSITORY }}:${{ github.sha }}- ${{ env.DOCKERHUB_USERNAME }}/${{ env.ECR_BACKEND_REPOSITORY }}:${{ github.event.release.tag_name }}+ ${{ env.DOCKERHUB_USERNAME }}/${{ env.ECR_BACKEND_REPOSITORY }}:${{ inputs.tag_name || github.event.release.tag_name }}${{ env.DOCKERHUB_USERNAME }}/${{ env.ECR_BACKEND_REPOSITORY }}:latest- name: Build, tag, and push ui image to Amazon Public ECR and Docker Hubid: build-ui-image@@ -71,8 +77,8 @@ jobs:push: truetags: |${{ env.ECR_REGISTRY}}/${{ env.REGISTRY_ALIAS }}/${{ env.ECR_UI_REPOSITORY }}:${{ github.sha }}- ${{ env.ECR_REGISTRY}}/${{ env.REGISTRY_ALIAS }}/${{ env.ECR_UI_REPOSITORY }}:${{ github.event.release.tag_name }}+ ${{ env.ECR_REGISTRY}}/${{ env.REGISTRY_ALIAS }}/${{ env.ECR_UI_REPOSITORY }}:${{ inputs.tag_name || github.event.release.tag_name }}${{ env.ECR_REGISTRY}}/${{ env.REGISTRY_ALIAS }}/${{ env.ECR_UI_REPOSITORY }}:latest${{ env.DOCKERHUB_USERNAME }}/${{ env.ECR_UI_REPOSITORY }}:${{ github.sha }}- ${{ env.DOCKERHUB_USERNAME }}/${{ env.ECR_UI_REPOSITORY }}:${{ github.event.release.tag_name }}+ ${{ env.DOCKERHUB_USERNAME }}/${{ env.ECR_UI_REPOSITORY }}:${{ inputs.tag_name || github.event.release.tag_name }}${{ env.DOCKERHUB_USERNAME }}/${{ env.ECR_UI_REPOSITORY }}:latest