Skip to content

Commit

Permalink
ci: remove pull_request workflows from ASW WC (microsoft#26636)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell authored and radium-v committed Apr 29, 2024
1 parent 3dc1573 commit 9ec8c51
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions .github/workflows/azure-static-web-apps-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,17 @@
name: Azure Static Web Apps CI/CD
name: Azure Static Web Apps web components

on:
push:
branches:
- 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
Expand All @@ -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'

0 comments on commit 9ec8c51

Please sign in to comment.