From 584ad268843a15c870f8944f1ed6d331d0fed60f Mon Sep 17 00:00:00 2001 From: Tanish Date: Tue, 10 Sep 2024 22:05:47 +0530 Subject: [PATCH] fix: updated workflows & changed _examples to examples --- .github/workflows/auto_assignee.yml | 4 +- .github/workflows/automerge.yml | 22 ++++---- .github/workflows/changelog.yml | 4 +- .github/workflows/readme.yml | 58 ++++----------------- .github/workflows/tf-checks.yml | 12 ++--- .github/workflows/tflint.yml | 4 +- .github/workflows/tfsec.yml | 4 +- {_example => examples}/basic/example.tf | 0 {_example => examples}/basic/outputs.tf | 0 {_example => examples}/basic/versions.tf | 0 {_example => examples}/complete/example.tf | 0 {_example => examples}/complete/outputs.tf | 0 {_example => examples}/complete/versions.tf | 0 13 files changed, 35 insertions(+), 73 deletions(-) rename {_example => examples}/basic/example.tf (100%) rename {_example => examples}/basic/outputs.tf (100%) rename {_example => examples}/basic/versions.tf (100%) rename {_example => examples}/complete/example.tf (100%) rename {_example => examples}/complete/outputs.tf (100%) rename {_example => examples}/complete/versions.tf (100%) diff --git a/.github/workflows/auto_assignee.yml b/.github/workflows/auto_assignee.yml index 7c9f442..77d5fdf 100644 --- a/.github/workflows/auto_assignee.yml +++ b/.github/workflows/auto_assignee.yml @@ -7,8 +7,8 @@ on: workflow_dispatch: jobs: assignee: - uses: clouddrove/github-shared-workflows/.github/workflows/auto_assignee.yml@1.2.4 + uses: clouddrove/github-shared-workflows/.github/workflows/auto_assignee.yml@master secrets: GITHUB: ${{ secrets.GITHUB }} with: - assignees: 'clouddrove-ci' + assignees: 'clouddrove-ci' \ No newline at end of file diff --git a/.github/workflows/automerge.yml b/.github/workflows/automerge.yml index 38bef0f..47988d0 100644 --- a/.github/workflows/automerge.yml +++ b/.github/workflows/automerge.yml @@ -1,12 +1,12 @@ --- -name: Auto merge -on: - pull_request: -jobs: - auto-merge: - uses: clouddrove/github-shared-workflows/.github/workflows/auto_merge.yml@1.2.4 - secrets: - GITHUB: ${{ secrets.GITHUB }} - with: - tfcheck: 'complete / Get min/max versions' -... + name: Auto merge + on: + pull_request: + jobs: + auto-merge: + uses: clouddrove/github-shared-workflows/.github/workflows/auto_merge.yml@master + secrets: + GITHUB: ${{ secrets.GITHUB }} + with: + tfcheck: 'basic / Check code format' + ... \ No newline at end of file diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 30dd881..4b735f5 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: changelog: - uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@1.2.4 + uses: clouddrove/github-shared-workflows/.github/workflows/changelog.yml@master secrets: inherit with: - branch: 'master' + branch: 'master' \ No newline at end of file diff --git a/.github/workflows/readme.yml b/.github/workflows/readme.yml index f1a4ed9..444164d 100644 --- a/.github/workflows/readme.yml +++ b/.github/workflows/readme.yml @@ -1,53 +1,15 @@ -name: 'Create README.md file' +name: Readme Workflow on: push: branches: - master - + paths-ignore: + - 'README.md' + - 'docs/**' + workflow_dispatch: jobs: - readme-create: - name: 'readme-create' - runs-on: ubuntu-latest - steps: - - name: 'Checkout' - uses: actions/checkout@master - - - name: 'Set up Python 3.7' - uses: actions/setup-python@v5 - with: - python-version: '3.x' - - - name: 'create readme' - uses: 'clouddrove/github-actions@9.0.3' - with: - actions_subcommand: 'readme' - github_token: '${{ secrets.GITHUB }}' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: 'pre-commit check errors' - uses: pre-commit/action@v3.0.1 - continue-on-error: true - - - name: 'pre-commit fix erros' - uses: pre-commit/action@v3.0.1 - continue-on-error: true - - - name: 'push readme' - uses: 'clouddrove/github-actions@9.0.3' - continue-on-error: true - with: - actions_subcommand: 'push' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - - name: 'Slack Notification' - uses: clouddrove/action-slack@v2 - with: - status: ${{ job.status }} - fields: repo,author - author_name: 'CloudDrove' - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # required - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} # required - if: always() + README: + uses: clouddrove/github-shared-workflows/.github/workflows/readme.yml@master + secrets: + TOKEN : ${{ secrets.GITHUB }} + SLACK_WEBHOOK_TERRAFORM: ${{ secrets.SLACK_WEBHOOK_TERRAFORM }} \ No newline at end of file diff --git a/.github/workflows/tf-checks.yml b/.github/workflows/tf-checks.yml index 7ffab8d..076ec9b 100644 --- a/.github/workflows/tf-checks.yml +++ b/.github/workflows/tf-checks.yml @@ -6,13 +6,13 @@ on: workflow_dispatch: jobs: complete-example: - uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4 + uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master + secrets: inherit with: - working_directory: './_example/complete/' + working_directory: './examples/complete/' basic-example: - uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@1.2.4 + uses: clouddrove/github-shared-workflows/.github/workflows/tf-checks.yml@master + secrets: inherit with: - working_directory: './_example/basic/' - - \ No newline at end of file + working_directory: './examples/basic/' diff --git a/.github/workflows/tflint.yml b/.github/workflows/tflint.yml index b342e98..ee98182 100644 --- a/.github/workflows/tflint.yml +++ b/.github/workflows/tflint.yml @@ -6,6 +6,6 @@ on: workflow_dispatch: jobs: tf-lint: - uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@1.2.4 + uses: clouddrove/github-shared-workflows/.github/workflows/tf-lint.yml@master secrets: - GITHUB: ${{ secrets.GITHUB }} + GITHUB: ${{ secrets.GITHUB }} \ No newline at end of file diff --git a/.github/workflows/tfsec.yml b/.github/workflows/tfsec.yml index 6938e8e..9aaf588 100644 --- a/.github/workflows/tfsec.yml +++ b/.github/workflows/tfsec.yml @@ -5,7 +5,7 @@ on: workflow_dispatch: jobs: tfsec: - uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@1.2.4 + uses: clouddrove/github-shared-workflows/.github/workflows/tfsec.yml@master secrets: inherit with: - working_directory: '.' + working_directory: '.' \ No newline at end of file diff --git a/_example/basic/example.tf b/examples/basic/example.tf similarity index 100% rename from _example/basic/example.tf rename to examples/basic/example.tf diff --git a/_example/basic/outputs.tf b/examples/basic/outputs.tf similarity index 100% rename from _example/basic/outputs.tf rename to examples/basic/outputs.tf diff --git a/_example/basic/versions.tf b/examples/basic/versions.tf similarity index 100% rename from _example/basic/versions.tf rename to examples/basic/versions.tf diff --git a/_example/complete/example.tf b/examples/complete/example.tf similarity index 100% rename from _example/complete/example.tf rename to examples/complete/example.tf diff --git a/_example/complete/outputs.tf b/examples/complete/outputs.tf similarity index 100% rename from _example/complete/outputs.tf rename to examples/complete/outputs.tf diff --git a/_example/complete/versions.tf b/examples/complete/versions.tf similarity index 100% rename from _example/complete/versions.tf rename to examples/complete/versions.tf