feact(ci): update tf-docs and megalinter flows
This commit is contained in:
@@ -72,6 +72,11 @@ jobs:
|
|||||||
megalinter-reports
|
megalinter-reports
|
||||||
mega-linter.log
|
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)
|
# Create pull request if applicable (for now works only on PR from same repository, not from forks)
|
||||||
- name: Create Pull Request with applied fixes
|
- name: Create Pull Request with applied fixes
|
||||||
id: cpr
|
id: cpr
|
||||||
|
|||||||
@@ -30,12 +30,20 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
README.md
|
README.md
|
||||||
- name: Push updated README.md
|
- name: Commit and push new terraform docs version
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
||||||
run: |
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
git config --global user.name "Gitea Bot"
|
with:
|
||||||
git config --global user.email "bot@git.palkoi.net"
|
branch: ${{ github.event.pull_request.head.ref || github.head_ref || github.ref }}
|
||||||
git add README.md
|
commit_message: "[MegaLinter] Apply linters fixes"
|
||||||
git status
|
commit_user_name: Gitea Bot
|
||||||
git commit -m 'docs(tf-docs): update README.md'
|
commit_user_email: bot@git.palkoi.net
|
||||||
git push
|
# - 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
|
||||||
|
|||||||
Reference in New Issue
Block a user