diff --git a/.gitea/workflows/sec-megalinter.yml b/.gitea/workflows/sec-megalinter.yml index 38660f0..546df44 100644 --- a/.gitea/workflows/sec-megalinter.yml +++ b/.gitea/workflows/sec-megalinter.yml @@ -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 diff --git a/.gitea/workflows/tf-docs.yml b/.gitea/workflows/tf-docs.yml index debef99..35a6751 100644 --- a/.gitea/workflows/tf-docs.yml +++ b/.gitea/workflows/tf-docs.yml @@ -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