terraform-docs: automated action #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push to main branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update_function_app_dist: | |
name: Update function_app_dist | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update function_app_dist default to 'release' | |
run: sed -i 's/^\( *default =\) "dev"/\1 "release"/' variables.tf | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'chore: set function_app_dist=release' | |
file_pattern: 'variables.tf' |