Skip to content

Commit

Permalink
Merge pull request #5 from Menci/main
Browse files Browse the repository at this point in the history
Close #1 #3 #4
  • Loading branch information
WalshyDev authored Mar 25, 2022
2 parents 3c88b7e + 10543ec commit 1a57fcd
Show file tree
Hide file tree
Showing 6 changed files with 189 additions and 200 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Wait for a Cloudflare Pages build to finish so you can do actions like purge cac
project: 'example-pages-project'
# Add this if you want GitHub Deployments (see below)
githubToken: ${{ secrets.GITHUB_TOKEN }}
# Add this if you want to wait for a deployment triggered by a specfied commit
commitHash: ${{ steps.push-changes.outputs.commit-hash }}
```
### Example
Expand Down
5 changes: 4 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ inputs:
githubToken:
description: 'GitHub Token to use for deployments (GITHUB_TOKEN secret or your own token!) - OPTIONAL (Only used for GitHub Deployments)'
required: false
commitHash:
description: 'The commit hash of the commit triggered the target deployment'
required: true
outputs:
id:
description: 'Deployment ID'
Expand All @@ -33,4 +36,4 @@ runs:
main: 'dist/action.js'
branding:
icon: 'cloud'
color: 'orange'
color: 'orange'
Loading

0 comments on commit 1a57fcd

Please sign in to comment.