Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

match feature #14

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ This action wait for a branch to be deployed, and outputs the deployment URL.

Time to wait (in ms) between attempts to fetch deployment URL. defaults to 10000.


### `pattern`

To match a certain URL in the case of multiple deployments, you can match the URL.

Uses https://github.com/micromatch/micromatch

Match a Vercel URL: `https://project-name-?????????-company.vercel.app`

## Outputs

### `deployment`
Expand All @@ -27,7 +36,7 @@ The deployment URL, if one is found.
timeout-minutes: 5
with:
token: ${{ secrets.GITHUB_TOKEN }}

pattern: https://graphcommerce-?????????-reachdigital.vercel.app
- name: Run end-to-end tests
run: npm run test:e2e
env:
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ inputs:
description: "Time to wait (in ms) between attempts to fetch deployment URL"
required: false
default: 10000
pattern:
description: "Pattern the url must match in case there are multiple deployment urls"
required: false
default: '**'
outputs:
deployment:
description: "The url of the most recent deployment"
Expand Down
Loading