Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 (close-pr.yaml): Add condition to skip workflow for forked repositories to optimize resource usage #2447

Merged
merged 3 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/close-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
pr_cleanup:
runs-on: ubuntu-latest
if: ${{ !(github.event.pull_request.head.repo.fork) }}
steps:
- uses: actions/create-github-app-token@v1
id: app-token
Expand All @@ -18,6 +19,7 @@ jobs:
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN }}
action: 'close'
deployment_environment: canary-${{ github.event.pull_request.number }}
app_location: ''
skip_app_build: true
skip_api_build: true
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
$WingetApplicationId = "nkdagility.azure-devops-migration-tools.Canary";
$docs_deploy_folder = "./azure-devops-migration-tools/canary/$branchSafeName"
$docs_baseURL = "/learn/azure-devops-migration-tools/canary/$branchSafeName"
$AzureSitesEnvironment = "$branchSafeName"
$AzureSitesEnvironment = "canary-${{ github.event.pull_request.number }}"
$RunRelease = 'false'
}
}
Expand Down Expand Up @@ -456,7 +456,13 @@ jobs:
Version: ${{ needs.Setup.outputs.GitVersion_SemVer }}
Ring: (${{ needs.Setup.outputs.nkdAgility_Ring }})

${{ needs.Setup.outputs.nkdAgility_ReleaseDescription }}
---
Funding for us doing work on this tool is generally through 1) customer funding, or 2) donated free time.

[Sponcer a Feature](https://github.com/sponsors/nkdAgility) | [Hire us directly](https://nkdagility.com/capabilities/azure-devops-migration-services/)
---

${{ needs.Setup.outputs.nkdAgility_ReleaseDescription }}

## Get the tools

Expand Down
Loading