@@ -12,12 +12,12 @@ jobs:
12
12
name : " Generate dependency information"
13
13
runs-on : ubuntu-latest
14
14
steps :
15
- - uses : actions/checkout@v3
15
+ - uses : actions/checkout@v4
16
16
with :
17
17
fetch-depth : 0
18
18
19
19
- name : Setup Go environment
20
- uses : actions/setup-go@v3
20
+ uses : actions/setup-go@v5
21
21
with :
22
22
go-version-file : go.mod
23
23
cache : true
@@ -37,14 +37,14 @@ jobs:
37
37
: > DEPENDENCY_LICENSES.md
38
38
: > DEPENDENCIES.md
39
39
git add DEPENDENCY_LICENSES.md DEPENDENCIES.md
40
-
40
+
41
41
# Generate license information
42
42
export GO_IMAGE=$(grep -e 'FROM golang:' "build-aux/docker/go_builder.dockerfile" | cut -d ' ' -f2 )
43
43
44
44
#Copy test data to another folder since it can't be used from there
45
45
cp -a ./test-data ./ui
46
46
export NPM_PACKAGES=$( echo -e "./ui/package.json\n./ui/package-lock.json" )
47
-
47
+
48
48
mkdir -p "${BUILD_TMP}"
49
49
build-aux/generate.sh --unparsable-packages ./unparsable-packages.yaml
50
50
58
58
- name : " Check that action didn't do any changes"
59
59
run : |
60
60
if [[ "${{ steps.changed-by-dependabot.outputs.is_dirty }}" == 'true' ]]; then
61
- echo "::error:: Action indicates that the repo was dirty"
61
+ echo "::error:: Action indicates that the repo was dirty"
62
62
exit 1
63
63
fi
64
64
@@ -74,18 +74,18 @@ jobs:
74
74
if : github.ref_type == 'branch'
75
75
run : |
76
76
if [[ "${{ steps.changed-by-dependabot2.outputs.license_information_committed }}" != 'true' ]]; then
77
- echo "::error:: Action indicates that the repo was not dirty"
77
+ echo "::error:: Action indicates that the repo was not dirty"
78
78
exit 1
79
79
fi
80
80
81
81
DESTINATION_BRANCH="${GITHUB_HEAD_REF:-$GITHUB_REF_NAME}"
82
82
DIFF=$(git diff --stat --cached origin/${DESTINATION_BRANCH})
83
83
if [[ -z "${DIFF}" ]]; then
84
- echo "::error:: There weren't any files committed."
84
+ echo "::error:: There weren't any files committed."
85
85
exit 1
86
86
fi
87
87
88
88
if ! grep -e '^\s*DEPENDENCY_LICENSES.md' <(echo "${DIFF}") > /dev/null; then
89
- echo "::error:: File DEPENDENCY_LICENSES.md was not modified, but it should have been."
89
+ echo "::error:: File DEPENDENCY_LICENSES.md was not modified, but it should have been."
90
90
exit 1
91
91
fi
0 commit comments