Skip to content

Commit

Permalink
Merge pull request #41 from this-is-tobi/develop
Browse files Browse the repository at this point in the history
ci: improve clean cache ci
  • Loading branch information
this-is-tobi authored Dec 22, 2024
2 parents 19c5bbc + 22d1d6f commit b249964
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ permissions:

jobs:
cleanup-cache:
name: Delete gituhb cache
name: Delete github cache
runs-on: ubuntu-latest
steps:
- name: Check out code
Expand Down Expand Up @@ -57,7 +57,6 @@ jobs:
infos:
name: Generate infos
runs-on: ubuntu-latest
if: ${{ github.event.pull_request.number || github.event.number }}
outputs:
build-matrix: ${{ steps.infos.outputs.BUILD_MATRIX }}
steps:
Expand Down Expand Up @@ -89,8 +88,9 @@ jobs:
- name: Delete ${{ matrix.images.name }} image
run: |
curl -s https://raw.githubusercontent.com/this-is-tobi/tools/main/shell/delete-ghcr-image.sh | bash -s -- \
curl -fsSL https://raw.githubusercontent.com/this-is-tobi/tools/main/shell/delete-ghcr-image.sh | bash -s -- \
-o "${{ steps.image-infos.outputs.USER_NAME }}" \
-i "${{ steps.image-infos.outputs.REPO_NAME }}" \
-t "${{ inputs.COMMIT_SHA || format('pr-{0}', inputs.PR_NUMBER || inputs.COMMIT_SHA || github.event.pull_request.number || github.event.number) }}" \
-t "${{ inputs.COMMIT_SHA || inputs.BRANCH_NAME || format('pr-{0}', inputs.PR_NUMBER || github.event.pull_request.number || github.event.number) }}" \
-g "${{ secrets.GITHUB_TOKEN }}"
continue-on-error: true
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
"type": "module",
"version": "0.5.1",
"packageManager": "pnpm@9.15.0",
"homepage": "https://this-is-tobi.com/docpress/introduction",
"repository": {
"type": "git",
"url": "https://github.com/this-is-tobi/docpress.git"
},
"module": "dist/docpress.js",
"types": "types/index.d.ts",
"bin": {
Expand Down

0 comments on commit b249964

Please sign in to comment.