2 Commits
v1.0.4 ... main

Author SHA1 Message Date
Josh Gross
7a697757fb Add deprecation message (#86)
Some checks failed
E2E Test / canary (macos-latest) (push) Has been cancelled
E2E Test / cache upload (macos-latest) (push) Has been cancelled
E2E Test / cache upload (ubuntu-latest) (push) Has been cancelled
E2E Test / cache upload (windows-latest) (push) Has been cancelled
ci-workflow / build (macos-latest) (push) Has been cancelled
ci-workflow / build (ubuntu-latest) (push) Has been cancelled
ci-workflow / build (windows-latest) (push) Has been cancelled
Code Scanning / CodeQL-Build (push) Has been cancelled
E2E Test / canary (ubuntu-latest) (push) Has been cancelled
E2E Test / canary (windows-latest) (push) Has been cancelled
golangci-lint / lint (push) Has been cancelled
Canary Test / cache upload (macos-latest) (push) Has been cancelled
Canary Test / cache upload (ubuntu-latest) (push) Has been cancelled
Canary Test / cache upload (windows-latest) (push) Has been cancelled
Canary Test / canary (macos-latest) (push) Has been cancelled
Canary Test / canary (ubuntu-latest) (push) Has been cancelled
Canary Test / canary (windows-latest) (push) Has been cancelled
* Add deprecation message

* Add some newlines
2024-10-21 12:20:02 -04:00
Yang Cao
0e7c371e56 Remove slack integration first to avoid create noises. (#82) 2023-10-30 17:16:46 -04:00
3 changed files with 27 additions and 18 deletions

View File

@@ -56,12 +56,12 @@ jobs:
cache_delete=$(gh actions-cache delete $CacheKey --branch $GITHUB_REF --confirm | grep "Deleted 1 cache entry with key") cache_delete=$(gh actions-cache delete $CacheKey --branch $GITHUB_REF --confirm | grep "Deleted 1 cache entry with key")
echo $cache_delete echo $cache_delete
[[ -z "$cache_delete" ]] && exit 1 || echo "Cache Delete Successful" [[ -z "$cache_delete" ]] && exit 1 || echo "Cache Delete Successful"
- name: Slack Notification on failure # - name: Slack Notification on failure
if: failure() # if: failure()
uses: 8398a7/action-slack@a74b761b4089b5d730d813fbedcd2ec5d394f3af # uses: 8398a7/action-slack@a74b761b4089b5d730d813fbedcd2ec5d394f3af
with: # with:
text: actions/gh-actions-cache canary failure # text: actions/gh-actions-cache canary failure
status: ${{ job.status }} # status: ${{ job.status }}
fields: repo,workflow,message,author,action,ref # fields: repo,workflow,message,author,action,ref
env: # env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@@ -75,12 +75,12 @@ jobs:
cache_delete=$(gh actions-cache delete $CacheKey --branch $GITHUB_REF --confirm | grep "Deleted 1 cache entry with key") cache_delete=$(gh actions-cache delete $CacheKey --branch $GITHUB_REF --confirm | grep "Deleted 1 cache entry with key")
echo $cache_delete echo $cache_delete
[[ -z "$cache_delete" ]] && exit 1 || echo "Cache Delete Successful" [[ -z "$cache_delete" ]] && exit 1 || echo "Cache Delete Successful"
- name: Slack Notification on failure # - name: Slack Notification on failure
if: failure() # if: failure()
uses: 8398a7/action-slack@a74b761b4089b5d730d813fbedcd2ec5d394f3af # uses: 8398a7/action-slack@a74b761b4089b5d730d813fbedcd2ec5d394f3af
with: # with:
text: actions/gh-actions-cache E2E test failure # text: actions/gh-actions-cache E2E test failure
status: ${{ job.status }} # status: ${{ job.status }}
fields: repo,workflow,message,author,action,ref # fields: repo,workflow,message,author,action,ref
env: # env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

View File

@@ -1,3 +1,12 @@
> [!IMPORTANT]
> This functionality has been integrated directly into the `gh` CLI
>
> https://cli.github.com/manual/gh_cache
>
> This extension should be removed and replaced with usage of `gh cache` directly
>
> `gh extension remove actions-cache`
# gh-actions-cache # gh-actions-cache
✨ A GitHub (`gh`) [CLI](https://cli.github.com/) extension to manage the GitHub Actions [caches](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows) being used in a GitHub repository. ✨ A GitHub (`gh`) [CLI](https://cli.github.com/) extension to manage the GitHub Actions [caches](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows) being used in a GitHub repository.