Skip to content

up to 7.2.0

up to 7.2.0 #480

Workflow file for this run

# This workflow move the right instance tf files from template directory depending on topology choice
name: TFTopologyCI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" or "master" branch
push:
branches: [ "main", "master" ]
pull_request:
branches: [ "main", "master" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
persist-credentials: false # otherwise, the token used is the GITHUB_TOKEN, instead of your personal token
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
# Runs a set of commands using the runners shell
- name: updating instance-xxx.tf files in terraform directory to match topology file
env: #use topology varaible as env
TOPOLOGY: ${{ vars.TOPOLOGY }}
run: |
echo Running tftopology.sh
./helpers/tftopology.sh
- name: Commit & Push changes back to repo
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
message: "ATTENTION: Topo update, discard previous run, check TF plan"