-
Notifications
You must be signed in to change notification settings - Fork 15.4k
chore: Update outdated GitHub Actions versions #1676
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,38 +1,38 @@ | ||||||
| name: Azure Static Web Apps CI/CD | ||||||
| on: workflow_dispatch | ||||||
| jobs: | ||||||
| build_and_deploy_job: | ||||||
| if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') | ||||||
| runs-on: ubuntu-latest | ||||||
| name: Build and Deploy Job | ||||||
| steps: | ||||||
| - uses: actions/checkout@v3 | ||||||
| with: | ||||||
| submodules: true | ||||||
| - name: Build And Deploy | ||||||
| id: builddeploy | ||||||
| uses: Azure/static-web-apps-deploy@v1 | ||||||
| with: | ||||||
| azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_RIVER_0DEBB7803 }} | ||||||
| repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) | ||||||
| action: "upload" | ||||||
| ###### Repository/Build Configurations - These values can be configured to match your app requirements. ###### | ||||||
| # For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig | ||||||
| app_location: "/quiz-app" # App source code path | ||||||
| api_location: "" # Api source code path - optional | ||||||
| output_location: "dist" # Built app content directory - optional | ||||||
| ###### End of Repository/Build Configurations ###### | ||||||
| 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.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_RIVER_0DEBB7803 }} | ||||||
| action: "close" | ||||||
| name: Azure Static Web Apps CI/CD | ||||||
|
|
||||||
| on: workflow_dispatch | ||||||
|
|
||||||
| jobs: | ||||||
| build_and_deploy_job: | ||||||
| if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed') | ||||||
| runs-on: ubuntu-latest | ||||||
| name: Build and Deploy Job | ||||||
| steps: | ||||||
| - uses: actions/checkout@v6 | ||||||
| with: | ||||||
| submodules: true | ||||||
| - name: Build And Deploy | ||||||
| id: builddeploy | ||||||
| uses: Azure/static-web-apps-deploy@v1 | ||||||
| with: | ||||||
| azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_ASHY_RIVER_0DEBB7803 }} | ||||||
| repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) | ||||||
|
||||||
| repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments) | |
| repo_token: ${{ secrets.GITHUB_TOKEN }} # Used for GitHub integrations (i.e. PR comments) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,7 @@ jobs: | |
| pull-requests: write | ||
|
|
||
| steps: | ||
| - uses: actions/stale@v6 | ||
| - uses: actions/stale@v10 | ||
| with: | ||
|
Comment on lines
20
to
22
|
||
| repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
| stale-issue-message: 'This issue has not seen any action for a while! Closing for now, but it can be reopened at a later date.' | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This workflow is only triggered by
workflow_dispatch, but both jobs are gated byif:conditions that only allowpush/pull_requestevents. As a result, a manual run will skip all jobs and the workflow effectively does nothing. Update theon:block to includepush/pull_request, or adjust/remove the job-levelif:conditions to match the intended trigger.