Skip to content

build(ci): bump aws-actions/configure-aws-credentials from 5.0.0 to 5… #326

build(ci): bump aws-actions/configure-aws-credentials from 5.0.0 to 5…

build(ci): bump aws-actions/configure-aws-credentials from 5.0.0 to 5… #326

Workflow file for this run

name: Synchronize shared resources
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
infrastruct:
name: Infrastructural adaptations
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
permissions:
contents: read
steps:
- name: Checkout this repo
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@00943011d9042930efac3dcd3a170e4273319bc8 # v5.1.0
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- name: Setup tofu tooling
uses: opentofu/setup-opentofu@000eeb8522f0572907c393e8151076c205fdba1b # v1.0.6
- name: Prepare the cloud directory
working-directory: ./cloud
run: tofu init
- name: Ensure sensible setups
working-directory: ./cloud
run: |
tofu fmt -check
tofu validate
- name: Synchronize existing resources
working-directory: ./cloud
run: ./cloud.sh sync
- name: Plan the upcoming change
if: github.event_name == 'pull_request'
working-directory: ./cloud
run: tofu plan
- name: Actually apply the change
if: github.ref == 'refs/heads/main'
working-directory: ./cloud
run: tofu apply -auto-approve