feact(ci): update tf-docs and megalinter flows

This commit is contained in:
2024-06-18 15:03:49 +03:00
parent 322d149704
commit 16db2785d2
2 changed files with 21 additions and 8 deletions

View File

@@ -72,6 +72,11 @@ jobs:
megalinter-reports
mega-linter.log
- name: Remove uploaded artifacts
run: |
rm -rf megalinter-reports
rm -rf mega-linter.log
# Create pull request if applicable (for now works only on PR from same repository, not from forks)
- name: Create Pull Request with applied fixes
id: cpr

View File

@@ -30,12 +30,20 @@ jobs:
with:
files: |
README.md
- name: Push updated README.md
- name: Commit and push new terraform docs version
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
git config --global user.name "Gitea Bot"
git config --global user.email "bot@git.palkoi.net"
git add README.md
git status
git commit -m 'docs(tf-docs): update README.md'
git push
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
commit_message: "[MegaLinter] Apply linters fixes"
commit_user_name: Gitea Bot
commit_user_email: bot@git.palkoi.net
# - name: Push updated README.md
# if: steps.verify-changed-files.outputs.files_changed == 'true'
# run: |
# git config --global user.name "Gitea Bot"
# git config --global user.email "bot@git.palkoi.net"
# git add README.md
# git status
# git commit -m 'docs(tf-docs): update README.md'
# git push