sf-plugin-permission-sets 0.0.0-dev.50 → 0.0.0-dev.52
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 +18 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -402,13 +402,16 @@ jobs:
|
|
|
402
402
|
check:
|
|
403
403
|
runs-on: ubuntu-latest
|
|
404
404
|
steps:
|
|
405
|
-
- uses: actions/checkout@
|
|
406
|
-
- uses: actions/setup-node@
|
|
405
|
+
- uses: actions/checkout@v7
|
|
406
|
+
- uses: actions/setup-node@v7
|
|
407
407
|
with:
|
|
408
408
|
node-version: 20
|
|
409
|
-
-
|
|
410
|
-
|
|
411
|
-
-
|
|
409
|
+
- name: Install Salesforce CLI
|
|
410
|
+
run: npm install --global @salesforce/cli
|
|
411
|
+
- name: Install the plugin
|
|
412
|
+
run: sf plugins install sf-plugin-permission-sets
|
|
413
|
+
- name: Check the permission files
|
|
414
|
+
run: sf ps check --file "permissions/*.yml"
|
|
412
415
|
```
|
|
413
416
|
|
|
414
417
|
**2. Apply on merge to main** (needs org auth):
|
|
@@ -424,17 +427,19 @@ jobs:
|
|
|
424
427
|
apply:
|
|
425
428
|
runs-on: ubuntu-latest
|
|
426
429
|
steps:
|
|
427
|
-
- uses: actions/checkout@
|
|
428
|
-
- uses: actions/setup-node@
|
|
430
|
+
- uses: actions/checkout@v7
|
|
431
|
+
- uses: actions/setup-node@v7
|
|
429
432
|
with:
|
|
430
433
|
node-version: 20
|
|
431
|
-
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
-
|
|
434
|
+
- name: Install Salesforce CLI
|
|
435
|
+
run: npm install --global @salesforce/cli
|
|
436
|
+
- name: Install the plugin
|
|
437
|
+
run: sf plugins install sf-plugin-permission-sets
|
|
438
|
+
- name: Log in to the org
|
|
439
|
+
run: echo '${{ secrets.SF_AUTH_URL }}' | sf org login sfdx-url --sfdx-url-stdin --alias prod
|
|
436
440
|
# --no-prompt so a deletion never blocks on a confirmation in CI.
|
|
437
|
-
-
|
|
441
|
+
- name: Apply the assignments
|
|
442
|
+
run: sf ps apply --file "permissions/*.yml" --target-org prod --mode sync --no-prompt
|
|
438
443
|
```
|
|
439
444
|
|
|
440
445
|
Get the auth URL once with `sf org display --verbose --target-org prod`, copy the `Sfdx Auth Url` value, and save it as a repository secret named `SF_AUTH_URL`.
|
package/package.json
CHANGED