Skip to content

Commit d7bab4b

Browse files
committed
stack github action updated
Now copy the providers.tf.example to providers.tf Signed-off-by: junior <junior@users.noreply.github.com>
1 parent a93d92e commit d7bab4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/stack.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2022 Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2022, 2024 Oracle and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33
#
44

@@ -27,6 +27,9 @@ jobs:
2727
STACK_FILES="*.tf schema.yaml README.md LICENSE VERSION .terraform.lock.hcl modules/"
2828
RELEASE=$(cat VERSION)
2929
ASSETS+="${STACKNAME}-stack.zip ${STACKNAME}-${RELEASE}.zip "
30+
echo "::group::Generating standalone providers.tf"
31+
cp -f providers.tf.example providers.tf || { printf '\n providers.tf.example ignored.\n'; exit 0; }
32+
echo "::endgroup::"
3033
echo "::group::Processing $STACKNAME"
3134
zip -r ${STACKNAME}-stack.zip $STACK_FILES -x "*.tfstat*" ".terraform/" || { printf '\n⛔ Unable to create %s stack.\n'; exit 1; }
3235
cp ${STACKNAME}-stack.zip ${STACKNAME}-${RELEASE}.zip || { printf '\n⛔ Unable to create %s stack.\n'; exit 1; }

0 commit comments

Comments
 (0)