diff --git a/.github/workflows/test-negative.yml b/.github/workflows/test-negative.yml index 8fe0747..58106c8 100644 --- a/.github/workflows/test-negative.yml +++ b/.github/workflows/test-negative.yml @@ -1,19 +1,26 @@ name: Test example negative on: -# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered -# # -# # Added pull_request to register workflow from the PR. -# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo -# pull_request: {} - workflow_dispatch: {} - + # # Uncomment when test added first time to register workflow and comment it back after workflow would be registered + # # + # # Added pull_request to register workflow from the PR. + # # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo + # pull_request: {} + workflow_dispatch: + inputs: + ref: + description: The fully-formed ref of the branch or tag that triggered the workflow run + required: false + type: string + sha: + description: The sha of the commit that triggered the workflow run + required: false + type: string jobs: setup: runs-on: ubuntu-latest steps: - name: Setup run: echo "Do setup" - test: runs-on: ubuntu-latest needs: [setup] @@ -21,15 +28,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - uses: ./ id: current with: param1: 'false' - outputs: result: "${{ steps.current.outputs.result1 }}" - assert: runs-on: ubuntu-latest needs: [test] @@ -38,7 +42,6 @@ jobs: with: expected: 'false' actual: "${{ needs.test.outputs.result }}" - teardown: runs-on: ubuntu-latest needs: [assert] diff --git a/.github/workflows/test-positive.yml b/.github/workflows/test-positive.yml index 4ee4acf..6185004 100644 --- a/.github/workflows/test-positive.yml +++ b/.github/workflows/test-positive.yml @@ -1,19 +1,26 @@ name: Test example positive on: -# # Uncomment when test added first time to register workflow and comment it back after workflow would be registered -# # -# # Added pull_request to register workflow from the PR. -# # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo -# pull_request: {} - workflow_dispatch: {} - + # # Uncomment when test added first time to register workflow and comment it back after workflow would be registered + # # + # # Added pull_request to register workflow from the PR. + # # Read more https://stackoverflow.com/questions/63362126/github-actions-how-to-run-a-workflow-created-on-a-non-master-branch-from-the-wo + # pull_request: {} + workflow_dispatch: + inputs: + ref: + description: The fully-formed ref of the branch or tag that triggered the workflow run + required: false + type: string + sha: + description: The sha of the commit that triggered the workflow run + required: false + type: string jobs: setup: runs-on: ubuntu-latest steps: - name: Setup run: echo "Do setup" - test: runs-on: ubuntu-latest continue-on-error: true @@ -21,15 +28,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - uses: ./ id: current with: param1: 'true' - outputs: result: "${{ steps.current.outputs.result1 }}" - assert: runs-on: ubuntu-latest needs: [test] @@ -38,7 +42,6 @@ jobs: with: expected: 'true' actual: "${{ needs.test.outputs.result }}" - teardown: runs-on: ubuntu-latest needs: [assert] diff --git a/Makefile b/Makefile deleted file mode 100644 index dc7415e..0000000 --- a/Makefile +++ /dev/null @@ -1,10 +0,0 @@ -SHELL := /bin/bash - -# List of targets the `readme` target should call before generating the readme -export README_DEPS ?= docs/github-action.md - --include $(shell curl -sSL -o .build-harness "https://cloudposse.tools/build-harness"; echo .build-harness) - -## Lint terraform code -lint: - $(SELF) terraform/install terraform/get-modules terraform/get-plugins terraform/lint terraform/validate \ No newline at end of file diff --git a/atmos.yaml b/atmos.yaml new file mode 100644 index 0000000..dfa6aca --- /dev/null +++ b/atmos.yaml @@ -0,0 +1,2 @@ +import: + - https://raw.githubusercontent.com/cloudposse/.github/refs/heads/main/.github/atmos/github-action.yaml diff --git a/docs/github-action.md b/docs/github-action.md deleted file mode 100644 index 257dd05..0000000 --- a/docs/github-action.md +++ /dev/null @@ -1,15 +0,0 @@ - - -## Inputs - -| Name | Description | Default | Required | -|------|-------------|---------|----------| -| param1 | Input parameter placeholder | true | true | - - -## Outputs - -| Name | Description | -|------|-------------| -| result1 | Output result placeholder | -