Allow linting in parallel

This commit is contained in:
Andrei Borza
2025-02-25 14:43:02 +01:00
parent 3b53d97109
commit f14eba91e2
2 changed files with 6 additions and 9 deletions
+4 -8
View File
@@ -40,13 +40,6 @@ jobs:
with:
fetch-depth: 0
- name: Set git user to getsentry-bot
if: github.ref == 'refs/heads/master'
run: |
echo "GIT_COMMITTER_NAME=getsentry-bot" >> $GITHUB_ENV;
echo "GIT_AUTHOR_NAME=getsentry-bot" >> $GITHUB_ENV;
echo "[email protected]" >> $GITHUB_ENV;
- name: Evaluate docker tag
run: |
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
@@ -54,6 +47,10 @@ jobs:
yarn set-docker-tag master
if ! git diff --quiet action.yml; then
echo "GIT_COMMITTER_NAME=getsentry-bot" >> $GITHUB_ENV;
echo "GIT_AUTHOR_NAME=getsentry-bot" >> $GITHUB_ENV;
echo "[email protected]" >> $GITHUB_ENV;
git add action.yml
git commit -m "chore: Set docker tag for master [skip-ci]"
git push
@@ -102,7 +99,6 @@ jobs:
build-args: BUILDKIT_INLINE_CACHE=1
lint:
needs: docker-build
runs-on: ubuntu-latest
steps:
+2 -1
View File
@@ -88,7 +88,8 @@ runs:
# For actions running on macos or windows runners, we use a composite
# action approach which allows us to install the arch specific sentry-cli
# binary that's needed for the runner. This is slower.
# binary that's needed for the runner.
# This is slower than the docker approach but runs on macos and windows.
- name: Mark GitHub workspace a safe directory in git
if: ${{ (runner.os == 'macOS' || runner.os == 'Windows') && inputs.disable_safe_directory != 'true' }}
shell: bash