Skip to content

Commit

Permalink
Merge branch 'main' into revert-7629-update-kubebuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
sk593 committed May 28, 2024
2 parents 267dc1b + f7ef3b2 commit 25e5365
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/purge-test-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ permissions:
contents: read # Required for actions/checkout

on:
# Enable manual trigger
workflow_dispatch:
schedule:
# Run twice a day
- cron: "30 0,12 * * *"
Expand All @@ -33,7 +35,7 @@ env:
ACTION_LINK: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

jobs:
purge_gchr_dev:
purge_ghcr_dev:
name: Delete old unused container images
runs-on: ubuntu-latest
if: github.repository == 'radius-project/radius'
Expand Down Expand Up @@ -101,9 +103,9 @@ jobs:
done
create_issue_on_failure:
name: Create issue for failing purge test resources run
needs: [purge_gchr_dev, purge_azure_resources]
needs: [purge_ghcr_dev, purge_azure_resources]
runs-on: ubuntu-latest
if: always() && (needs.purge_gchr_dev.result == 'failure' || needs.purge_azure_resources.result == 'failure')
if: always() && ${{ github.event_name != 'workflow_dispatch' }} && (needs.purge_ghcr_dev.result == 'failure' || needs.purge_azure_resources.result == 'failure')
steps:
- uses: actions/github-script@v7
with:
Expand Down

0 comments on commit 25e5365

Please sign in to comment.