mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 20:08:36 +08:00 
			
		
		
		
	fix: applied josh's suggestions
This commit is contained in:
		
							parent
							
								
									585e29dc17
								
							
						
					
					
						commit
						c128039033
					
				|  | @ -48,10 +48,16 @@ on: | ||||||
|   pull_request: |   pull_request: | ||||||
|     types: |     types: | ||||||
|       - closed |       - closed | ||||||
|  |   workflow_dispatch: | ||||||
| 
 | 
 | ||||||
| jobs: | jobs: | ||||||
|   cleanup: |   cleanup: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest | ||||||
|  |     permissions: | ||||||
|  |       # `actions:write` permission is required to delete caches | ||||||
|  |       #   See also: https://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28#delete-a-github-actions-cache-for-a-repository-using-a-cache-id | ||||||
|  |       actions: write | ||||||
|  |       contents: read | ||||||
|     steps: |     steps: | ||||||
|       - name: Cleanup |       - name: Cleanup | ||||||
|         run: | |         run: | | ||||||
|  | @ -70,10 +76,6 @@ jobs: | ||||||
|           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||
|           GH_REPO: ${{ github.repository }} |           GH_REPO: ${{ github.repository }} | ||||||
|           BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge |           BRANCH: refs/pull/${{ github.event.pull_request.number }}/merge | ||||||
|           done |  | ||||||
|           echo "Done" |  | ||||||
|         env: |  | ||||||
|           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |  | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
| </details> | </details> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Alessandro Sebastiani
						Alessandro Sebastiani