fix: Update resource limits #125
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PR Cleanup | |
| on: | |
| pull_request: | |
| types: [closed] | |
| jobs: | |
| release_preview_canister: | |
| # Mirror preview-deployment.yml: only PRs that got a preview canister have | |
| # one to release. Fork and Dependabot PRs never allocate one. | |
| if: >- | |
| github.event.pull_request.head.repo.full_name == github.repository && | |
| github.event.pull_request.user.login != 'dependabot[bot]' | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: pr-${{ github.event.pull_request.number || github.event.number }} | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1 | |
| with: | |
| python-version: "3.10" | |
| - run: | | |
| pip install icp-py-core "cbor2<6" | |
| python3 .github/workflows/scripts/release-canister.py ${{ github.event.pull_request.number }} | |
| env: | |
| POOL_CONTROLLER_IDENTITY: ${{ secrets.POOL_CONTROLLER_IDENTITY }} | |
| POOL_CANISTER_ID: ${{ secrets.POOL_CANISTER_ID }} | |
| - uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 | |
| with: | |
| script: | | |
| const comments = require('./.github/workflows/scripts/comments.cjs'); | |
| const maybeComment = await comments.get(context, github); | |
| if (maybeComment) { | |
| await comments.delete(context, github, maybeComment.id); | |
| } |