Skip to content

Commit

Permalink
chmod +x all bash scripts in repository
Browse files Browse the repository at this point in the history
  • Loading branch information
carlssonk committed Oct 2, 2024
1 parent ddf11ab commit 4c1e3e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
run: find . -type f -name "*.sh" -exec chmod +x {} +

- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -113,9 +114,7 @@ jobs:
uses: hashicorp/setup-terraform@v2

- name: Set modules
run: |
chmod +x ./scripts/ci_set_modules.sh
./scripts/ci_set_modules.sh ${{ matrix.step }}
run: ./scripts/ci_set_modules.sh ${{ matrix.step }}

- name: Terraform Init
run: |
Expand All @@ -135,8 +134,6 @@ jobs:
organization=${{ env.TF_VAR_organization }} \
cleanup_policies=${{ github.event_name == 'schedule' || github.event.inputs.cleanup_policies == 'true' }}
chmod +x ./scripts/ci_retry_command.sh
- name: ${{ (github.event_name == 'pull_request' && format('Terraform Plan{0}', matrix.step == 'iam' && ' & Apply' || '')) || 'Terraform Apply' }}
run: |
terraform workspace select ${{ needs.setup.outputs.env }} 2>/dev/null || terraform workspace new ${{ needs.setup.outputs.env }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/destroy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:

- name: Checkout
uses: actions/checkout@v4
run: find . -type f -name "*.sh" -exec chmod +x {} +

- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -57,9 +58,7 @@ jobs:
uses: hashicorp/setup-terraform@v2

- name: Set modules
run: |
chmod +x ./scripts/ci_set_modules.sh
./scripts/ci_set_modules.sh ${{ matrix.step }}
run: ./scripts/ci_set_modules.sh ${{ matrix.step }}

- name: Terraform Init
run: |
Expand All @@ -79,8 +78,6 @@ jobs:
organization=${{ env.TF_VAR_organization }} \
cleanup_policies=true
chmod +x ./scripts/ci_retry_command.sh
- name: Terraform Destroy
run: |
terraform workspace select ${{ github.event.inputs.environment }} 2>/dev/null || terraform workspace new ${{ github.event.inputs.environment }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/remove_tf_state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
run: find . -type f -name "*.sh" -exec chmod +x {} +

- name: Configure AWS Credentials (OIDC)
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -56,9 +57,7 @@ jobs:
uses: hashicorp/setup-terraform@v2

- name: Set modules
run: |
chmod +x ./scripts/ci_set_modules.sh
./scripts/ci_set_modules.sh ${{ env.TF_VAR_workflow_step }}
run: ./scripts/ci_set_modules.sh ${{ env.TF_VAR_workflow_step }}

- name: Terraform Init
run: |
Expand All @@ -78,8 +77,6 @@ jobs:
organization=${{ env.TF_VAR_organization }} \
cleanup_policies=true
chmod +x ./scripts/ci_retry_command.sh
- name: Check and Remove Resource from Terraform State
run: |
terraform workspace select ${{ github.event.inputs.environment }} 2>/dev/null || terraform workspace new ${{ github.event.inputs.environment }}
Expand Down

0 comments on commit 4c1e3e5

Please sign in to comment.