|
7 | 7 | workflow_call:
|
8 | 8 | # Re-usable workflows do not automatically inherit the caller's secrets.
|
9 | 9 | #
|
10 |
| - # If the calling workflow uses a secret in the `setup_command` input, then |
11 |
| - # it also must pass the secret to the re-usable workflow. |
| 10 | + # This workflow decrypts encrypted files, so the calling workflow needs to |
| 11 | + # pass the secret to the re-usable workflow. |
12 | 12 | #
|
13 | 13 | # Example:
|
14 | 14 | #
|
15 |
| - # pod_lib_lint: |
16 |
| - # uses: ./.github/workflows/common_cocoapods.yml |
| 15 | + # quickstart: |
| 16 | + # uses: ./.github/workflows/common_quickstart.yml |
17 | 17 | # with:
|
18 |
| - # product: FirebaseFoo |
19 |
| - # setup_command: | |
20 |
| - # scripts/decrypt_gha_secret.sh \ |
21 |
| - # /path/to/GoogleService-Info.plist.gpg \ |
22 |
| - # /path/to/dest/GoogleService-Info.plist "$plist_secret" |
| 18 | + # # ... |
23 | 19 | # secrets:
|
24 | 20 | # plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
|
25 | 21 | #
|
|
28 | 24 | required: true
|
29 | 25 |
|
30 | 26 | inputs:
|
31 |
| - # The product to test be tested (e.g. `FirebaseABTesting`). |
| 27 | + # The product to test be tested (e.g. `ABTesting`). |
32 | 28 | product:
|
33 | 29 | type: string
|
34 | 30 | required: true
|
35 | 31 |
|
36 |
| - # TODO: What does this mean? |
| 32 | + # TODO(docs): What does this mean? |
37 | 33 | is_legacy:
|
38 | 34 | type: boolean
|
39 | 35 | required: true
|
40 | 36 |
|
| 37 | + # TODO(docs): |
41 | 38 | plist_src_path:
|
42 | 39 | type: string
|
43 | 40 | required: true
|
44 | 41 |
|
| 42 | + # TODO(docs): |
45 | 43 | plist_dst_path:
|
46 | 44 | type: string
|
47 | 45 | required: true
|
48 | 46 |
|
| 47 | + # TODO(docs): |
49 | 48 | # swift or objc
|
50 | 49 | quickstart_type:
|
51 | 50 | type: string
|
52 | 51 | required: false
|
53 | 52 | default: objc
|
54 | 53 |
|
| 54 | + # TODO(docs): |
55 | 55 | run_tests:
|
56 | 56 | type: boolean
|
57 | 57 | required: false
|
58 | 58 | default: true
|
59 | 59 |
|
60 | 60 | # A command to execute before testing.
|
61 | 61 | #
|
62 |
| - # This is useful for additional set up, like starting an emulator or |
63 |
| - # downloading test data. |
64 |
| - # |
65 |
| - # Note, this step has an env var set to decrypt plists. Use |
66 |
| - # "$plist_secret" in the given command. See `secrets` documentation |
67 |
| - # at top of this file. |
68 |
| - # |
69 |
| - # Example: `FirebaseFunctions/Backend/start.sh synchronous` |
| 62 | + # Example: `scripts/setup_quickstart.sh functions` |
70 | 63 | setup_command:
|
71 | 64 | type: string
|
72 | 65 | required: false
|
@@ -108,6 +101,7 @@ jobs:
|
108 | 101 | ${{ inputs.run_tests }} \
|
109 | 102 | ${{ inputs.quickstart_type }}
|
110 | 103 | # TODO: Add upload on fialure.
|
| 104 | + # TODO: Remove the decrypted repo secret. |
111 | 105 | # - name: Upload raw logs if failed.
|
112 | 106 | # if: ${{ failure() }}
|
113 | 107 | # uses: actions/upload-artifact@v4
|
|
0 commit comments