diff --git a/.github/workflows/azure-static-web-apps-deploy.yml b/.github/workflows/azure-static-web-apps-deploy.yml index 40e7827568dfda..0d1a36770d84f4 100644 --- a/.github/workflows/azure-static-web-apps-deploy.yml +++ b/.github/workflows/azure-static-web-apps-deploy.yml @@ -1,4 +1,4 @@ -name: Azure Static Web Apps CI/CD +name: Azure Static Web Apps web components on: push: @@ -6,19 +6,12 @@ on: - web-components-v3 paths: - packages/web-components/* - pull_request: - types: [opened, synchronize, reopened, closed] - branches: - - web-components-v3 - paths: - - packages/web-components/* permissions: contents: read - pull-requests: write jobs: - build_and_deploy_job: + build_and_deploy: if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') runs-on: ubuntu-latest name: Build and Deploy Job @@ -36,15 +29,3 @@ jobs: app_location: '/packages/web-components' # App source code path relative to repository root output_location: 'dist/storybook' # Built app content directory, relative to app_location - optional skip_api_build: true - - close_pull_request_job: - if: github.event_name == 'pull_request' && github.event.action == 'closed' - runs-on: ubuntu-latest - name: Close Pull Request Job - steps: - - name: Close Pull Request - id: closepullrequest - uses: Azure/static-web-apps-deploy@v1 - with: - azure_static_web_apps_api_token: ${{ secrets.WEB_COMPONENTS_AZURE_STATIC_WEB_APPS_API_TOKEN }} - action: 'close'