File tree Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Expand file tree Collapse file tree 3 files changed +31
-1
lines changed Original file line number Diff line number Diff line change 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 }}"
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}}
Original file line number Diff line number Diff line change @@ -111,6 +111,22 @@ from your `next` branch to a `preprod` preview channel).
111111The location of your [`firebase.json`](https://firebase.google.com/docs/cli#the_firebasejson_file)
112112file 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
116132This GitHub Action is not an officially supported Google product
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments