gowalk-cicd 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -2
- package/action/.daemux-version +1 -1
- package/android-action/.daemux-version +1 -1
- package/package.json +1 -1
- package/templates/deploy.yml +11 -2
package/README.md
CHANGED
|
@@ -143,8 +143,13 @@ the token lives in one revocable place:
|
|
|
143
143
|
gh secret set GIT_PRIVATE_TOKEN --repo my-org/my-app
|
|
144
144
|
```
|
|
145
145
|
|
|
146
|
-
Without the secret the step
|
|
147
|
-
unaffected.
|
|
146
|
+
Without the secret the step prints a note and exits 0, so repos that do not need
|
|
147
|
+
it are unaffected.
|
|
148
|
+
|
|
149
|
+
> The emptiness check happens in the shell rather than in the step's `if:`.
|
|
150
|
+
> GitHub does not expose the `secrets` context to a step-level `if:` — putting
|
|
151
|
+
> it there does not evaluate to false, it makes the entire workflow file invalid
|
|
152
|
+
> and every run fails before any job starts.
|
|
148
153
|
|
|
149
154
|
### Localized release notes
|
|
150
155
|
|
package/action/.daemux-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.20
|
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.20
|
package/package.json
CHANGED
package/templates/deploy.yml
CHANGED
|
@@ -166,14 +166,23 @@ jobs:
|
|
|
166
166
|
# https://github.com/<org>/<repo>.git URLs resolve on the runner, so the
|
|
167
167
|
# token lives in one revocable place. No secret, no step — repos that do
|
|
168
168
|
# not need it are unaffected.
|
|
169
|
+
# The `secrets` context is NOT available in a step-level `if:` — using it
|
|
170
|
+
# there does not evaluate false, it makes the whole workflow file invalid
|
|
171
|
+
# and every run fails before any job starts. So the secret comes in as env
|
|
172
|
+
# and the emptiness check happens in the shell.
|
|
169
173
|
- name: Authenticate private git dependencies
|
|
170
|
-
if: ${{ steps.mode.outputs.mode == 'local' && steps.flutter.outputs.enabled == 'true'
|
|
174
|
+
if: ${{ steps.mode.outputs.mode == 'local' && steps.flutter.outputs.enabled == 'true' }}
|
|
171
175
|
shell: bash
|
|
172
176
|
env:
|
|
173
177
|
GIT_PRIVATE_TOKEN: ${{ secrets.GIT_PRIVATE_TOKEN }}
|
|
174
178
|
run: |
|
|
175
|
-
|
|
179
|
+
if [ -z "${GIT_PRIVATE_TOKEN:-}" ]; then
|
|
180
|
+
echo "No GIT_PRIVATE_TOKEN secret; private git dependencies must carry their own credentials."
|
|
181
|
+
exit 0
|
|
182
|
+
fi
|
|
176
183
|
echo "::add-mask::$GIT_PRIVATE_TOKEN"
|
|
184
|
+
git config --global url."https://x-access-token:${GIT_PRIVATE_TOKEN}@github.com/".insteadOf "https://github.com/"
|
|
185
|
+
echo "Configured authenticated github.com remotes for pub."
|
|
177
186
|
# Same reason as the iOS job: apps using AppLocalizations must generate it
|
|
178
187
|
# before anything analyses or compiles them. No-op for apps without l10n.
|
|
179
188
|
- name: Generate localizations
|