Fix badges workflow blocking release/prebuilt workflows from permission and Git-LFS complications (#30947)

old-commit-hash: 2a074eefac
pull/32199/head
Nelson Chen 1 year ago committed by GitHub
parent 4fde39f9ea
commit 79e22e7ae4
  1. 4
      .github/workflows/badges.yaml

@ -14,6 +14,8 @@ jobs:
name: create badges name: create badges
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
if: github.repository == 'commaai/openpilot' if: github.repository == 'commaai/openpilot'
permissions:
contents: write
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -23,6 +25,8 @@ jobs:
run: | run: |
${{ env.RUN }} "scons -j$(nproc) && python selfdrive/ui/translations/create_badges.py" ${{ env.RUN }} "scons -j$(nproc) && python selfdrive/ui/translations/create_badges.py"
rm .gitattributes
git checkout --orphan badges git checkout --orphan badges
git rm -rf --cached . git rm -rf --cached .
git config user.email "badge-researcher@comma.ai" git config user.email "badge-researcher@comma.ai"

Loading…
Cancel
Save