Disable committing built files in GitHub Actions, conflicts with protected branch

This commit is contained in:
Matt Triff 2021-12-17 16:40:06 -05:00
parent a1ec9d0de6
commit de6c46cdd0

View file

@ -32,15 +32,20 @@ jobs:
BUNDLESIZE_GITHUB_TOKEN: ${{secrets.BUNDLESIZE_GITHUB_TOKEN}} BUNDLESIZE_GITHUB_TOKEN: ${{secrets.BUNDLESIZE_GITHUB_TOKEN}}
FORCE_COLOR: 2 FORCE_COLOR: 2
HUSKY_SKIP_INSTALL: true HUSKY_SKIP_INSTALL: true
- name: Commit built files ##
run: | ## Disabling for now. There does not appear to be a secure way to do this
git config --local user.email "action@github.com" ## with protected branches. See discussion:
git config --local user.name "GitHub Action" ## https://github.community/t/how-to-push-to-protected-branches-in-a-github-action/16101
git commit -m "Update build files 🏗" -a || echo "No changes to commit" && exit 0 ##
- name: Push changes # - name: Commit built files
uses: ad-m/github-push-action@master # run: |
with: # git config --local user.email "action@github.com"
github_token: ${{ secrets.GITHUB_TOKEN }} # git config --local user.name "GitHub Action"
# git commit -m "Update build files 🏗" -a || echo "No changes to commit" && exit 0
# - name: Push changes
# uses: ad-m/github-push-action@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload coverage to Codecov - name: Upload coverage to Codecov
run: bash <(curl -s https://codecov.io/bash) run: bash <(curl -s https://codecov.io/bash)