diff --git a/.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml b/.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml index d139fcc0..9f400b38 100644 --- a/.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml +++ b/.github/workflows/wordlist-updater_awesome-list-of-secrets-in-environment-variables.yml @@ -21,10 +21,14 @@ jobs: run: | git config --local user.email "example@github.com" git config --local user.name "GitHub Action" + - name: Set environment variables + run: echo "::set-output name=gitstatus::$(git status --porcelain)" - name: Commit changed files + if: steps.version.outputs.gitstatus != "" run: git commit -m "[Github Action] Updated awesome-environment-variable-names.txt" - name: Push changes # push the output folder to your repo - uses: ad-m/github-push-action@master + if: steps.version.outputs.gitstatus != "" + uses: ad-m/github-push-action@master with: github_token: ${{ secrets.GITHUB_TOKEN }} force: true