Skip to content

Commit

Permalink
token
Browse files Browse the repository at this point in the history
  • Loading branch information
THWiseman committed Dec 8, 2023
1 parent 3f93776 commit 1e8ee58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/scalafmt-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,15 @@ jobs:
- uses: ./.github/set_up_cromwell_action
with:
cromwell_repo_token: ${{ secrets.BROADBOT_GITHUB_TOKEN }}
- name: Run ScalaFmt
- name: Run ScalaFmt Fix
if: steps.check-comment.outputs.comment-triggered == 'true' || github.event_name == 'workflow_dispatch'
env:
BROADBOT_GITHUB_TOKEN: ${{ secrets.BROADBOT_GITHUB_TOKEN }}
run: |
sbt scalafmtAll
git config --global user.email "ScalaFmtFixer@fakeDomain.com"
git config --global user.name "ScalaFmt Fixer"
git add .
git commit -m "Auto-format code with ScalaFmt"
git push origin ${{ steps.determine-branch.outputs.target_branch }}
git push origin https://broadbot:$BROADBOT_GITHUB_TOKEN@github.com/broadinstitute/cromwell.git ${{ steps.determine-branch.outputs.target_branch }}
working-directory: ${{ github.workspace }}

0 comments on commit 1e8ee58

Please sign in to comment.