@abgov/nx-oc 5.0.3-beta.1 → 5.1.0-beta.1
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/package.json
CHANGED
|
@@ -31,27 +31,22 @@ jobs:
|
|
|
31
31
|
affected_apps: ${{ steps.set_outputs.outputs.affected_apps }}
|
|
32
32
|
steps:
|
|
33
33
|
# Checkout the source code.
|
|
34
|
-
- uses: actions/checkout@
|
|
34
|
+
- uses: actions/checkout@v3
|
|
35
35
|
with:
|
|
36
36
|
fetch-depth: 0
|
|
37
|
-
- uses: actions/setup-node@
|
|
37
|
+
- uses: actions/setup-node@v3
|
|
38
38
|
with:
|
|
39
39
|
node-version: "16"
|
|
40
|
+
cache: "npm"
|
|
40
41
|
- run: npm ci
|
|
41
42
|
|
|
42
43
|
# Determine the last successful build of this (pipeline.yml) workflow and set it as the AFFECTED_BASE.
|
|
43
|
-
- id: get_branch_name
|
|
44
|
-
run: echo "short_ref=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
|
45
44
|
- name: Get last successful commit
|
|
46
|
-
uses: nrwl/last-successful-commit-action@v1
|
|
47
45
|
id: last_successful_commit
|
|
48
|
-
|
|
49
|
-
branch: ${{ steps.get_branch_name.outputs.short_ref }}
|
|
50
|
-
workflow_id: pipeline.yml
|
|
51
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
46
|
+
uses: nrwl/nx-set-shas@v3
|
|
52
47
|
- name: Set AFFECTED_BASE to last successful build commit
|
|
53
|
-
if: ${{ steps.last_successful_commit.outputs.
|
|
54
|
-
run: echo "AFFECTED_BASE=${{ steps.last_successful_commit.outputs.
|
|
48
|
+
if: ${{ steps.last_successful_commit.outputs.base }}
|
|
49
|
+
run: echo "AFFECTED_BASE=${{ steps.last_successful_commit.outputs.base }}" >> $GITHUB_ENV
|
|
55
50
|
|
|
56
51
|
# Input for base takes precedence over last successful build.
|
|
57
52
|
- name: Set AFFECTED_BASE to input for SELECTED_BASE
|
|
@@ -102,7 +97,7 @@ jobs:
|
|
|
102
97
|
name: <%= envs[i] %>
|
|
103
98
|
steps:
|
|
104
99
|
# Checkout the source code for manifests
|
|
105
|
-
- uses: actions/checkout@
|
|
100
|
+
- uses: actions/checkout@v3
|
|
106
101
|
- name: Oc login
|
|
107
102
|
uses: redhat-actions/oc-login@v1
|
|
108
103
|
with:
|