Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 7ddd47dc authored by Rafael Tonholo's avatar Rafael Tonholo Committed by GitHub
Browse files

Merge pull request #9851 from rafaeltonholo/ci/dependency-guard-set-token-on-checkout

ci(dependency-guard-update): add token to checkout job; add some logs before pushing to repository
parents 3b759b55 9aa3edd1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ jobs:
        uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
        with:
          ref: ${{ github.head_ref }}
          token: ${{ steps.app-token.outputs.token || github.token }}

      - name: Prepares environment
        uses: ./.github/actions/setup
@@ -49,12 +50,20 @@ jobs:
          APP_SLUG: ${{ steps.app-token.outputs.app-slug || 'github-actions'}}
          APP_USER_ID: ${{ vars.BOT_USER_ID || '41898282' }}
        run: |
          set -x
          
          git config --global user.name "${APP_SLUG}"
          git config --global user.email "${APP_USER_ID}+${APP_SLUG}[bot]@users.noreply.github.com"
          git add .
          if ! git diff --cached --quiet; then
            git config user.name
            git config user.email
            git status
            git commit -m "chore(deps): Update dependency guard files on behalf of @dependabot"
            git log -n 2
            git push
          else
            echo "No changes to commit"
          fi

          set +x