From aea4c584319f994b98c1ed595fc0431abe14c1b1 Mon Sep 17 00:00:00 2001 From: artlvns Date: Wed, 20 Nov 2024 10:53:14 +0100 Subject: [PATCH 1/2] Actions workdlow updates. chore: Introduce tag and release module workflow. chore: adjust CI wokrflow to run on PR only. We don't need it to run after merge to main once more. --- .github/workflows/tag-and-release.yaml | 14 ++++++++++++++ .github/workflows/test.yaml | 3 --- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/tag-and-release.yaml diff --git a/.github/workflows/tag-and-release.yaml b/.github/workflows/tag-and-release.yaml new file mode 100644 index 0000000..71de07c --- /dev/null +++ b/.github/workflows/tag-and-release.yaml @@ -0,0 +1,14 @@ +name: "Tag and release terraform module" + +on: + push: + branches: + - main + +jobs: + tag-and-release: + uses: dsb-norge/github-actions-terraform/.github/workflows/terraform-module-release.yaml@v0 + secrets: inherit + permissions: + contents: write # required for checkout action. + pull-requests: write # required for commenting on PR \ No newline at end of file diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3a701d3..94bc3bb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,9 +1,6 @@ name: "CI TF Test" on: - push: - branches: - - main pull_request: branches: - main From 837fb122b5977f9ef6befc9009338be32aac6ed7 Mon Sep 17 00:00:00 2001 From: artlvns Date: Wed, 20 Nov 2024 11:04:46 +0100 Subject: [PATCH 2/2] docs: make info om tf docs placeholder to comment in markdown, since don't needed in clear text. --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8e17ca5..66e6342 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,8 @@ git push --tags # push the new tags **Note:** If you are having problems pulling main after a release, try to force fetch the tags: `git fetch --tags -f`. -Below is a placeholder for Terraform-docs generated documentation. Do not edit between the delimiters. + + ## Requirements | Name | Version |