Skip to content

Commit 03e71a3

Browse files
authored
Document outputs (#25)
1 parent 6f364f2 commit 03e71a3

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.github/workflows/deploy-preview.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
run: npm ci
2626
- name: Check that Prettier was run
2727
run: npm run format:check
28-
- uses: ./
28+
- name: Deploy to Firebase Hosting preview channel
29+
id: firebase_hosting_preview
30+
uses: ./
2931
with:
3032
repoToken: "${{ secrets.GITHUB_TOKEN }}"
3133
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
@@ -34,3 +36,8 @@ jobs:
3436
entryPoint: "./demo"
3537
env:
3638
FIREBASE_CLI_PREVIEWS: hostingchannels
39+
- name: Check outputs
40+
run: |
41+
echo urls ${{steps.firebase_hosting_preview.outputs.url}}
42+
echo expire_time ${{steps.firebase_hosting_preview.outputs.expire_time}}
43+
echo details_url ${{steps.firebase_hosting_preview.outputs.details_url}}

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,22 @@ from your `next` branch to a `preprod` preview channel).
111111
The location of your [`firebase.json`](https://firebase.google.com/docs/cli#the_firebasejson_file)
112112
file relative to the root of your repository. Defaults to `.` (the root of your repo).
113113

114+
## Outputs
115+
116+
Values emitted by this action that can be consumed by other actions later in your workflow
117+
118+
### `urls`
119+
120+
The url(s) deployed to
121+
122+
### `expire_time`
123+
124+
The time the deployed preview urls expire
125+
126+
### `details_url`
127+
128+
A single URL that was deployed to
129+
114130
---
115131

116132
This GitHub Action is not an officially supported Google product

action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,10 @@ inputs:
4848
directory"
4949
default: "."
5050
required: false
51+
outputs:
52+
urls:
53+
description: The url(s) deployed to
54+
expire_time:
55+
description: The time the deployed preview urls expire
56+
details_url:
57+
description: A single URL that was deployed to

0 commit comments

Comments
 (0)