Skip to content

Commit

Permalink
reset workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottGibb committed Nov 25, 2024
1 parent 836dafa commit e8abc7f
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# If APPLY_FIXES is used, defines if the fixes are directly committed (commit)
# or posted in a PR (pull_request)
APPLY_FIXES_MODE: commit
APPLY_FIXES_MODE: pull_request

concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
Expand Down Expand Up @@ -126,16 +126,15 @@
# Set APPLY_FIXES_IF_* vars for use in future steps
- name: Set APPLY_FIXES_IF_* vars
run: |
# printf 'APPLY_FIXES_IF_PR=%s\n' "${{
# env.APPLY_FIXES_IF == 'true' &&
# env.APPLY_FIXES_MODE == 'pull_request'
# }}" >> "${GITHUB_ENV}"
# printf 'APPLY_FIXES_IF_COMMIT=%s\n' "${{
# env.APPLY_FIXES_IF == 'true' &&
# env.APPLY_FIXES_MODE == 'commit' &&
# (!contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref))
# }}" >> "${GITHUB_ENV}"
APPLY_FIXES_IF: true >> "${GITHUB_ENV}"
printf 'APPLY_FIXES_IF_PR=%s\n' "${{
env.APPLY_FIXES_IF == 'true' &&
env.APPLY_FIXES_MODE == 'pull_request'
}}" >> "${GITHUB_ENV}"
printf 'APPLY_FIXES_IF_COMMIT=%s\n' "${{
env.APPLY_FIXES_IF == 'true' &&
env.APPLY_FIXES_MODE == 'commit' &&
(!contains(fromJSON('["refs/heads/main", "refs/heads/master"]'), github.ref))
}}" >> "${GITHUB_ENV}"
# Create pull request if applicable
# (for now works only on PR from same repository, not from forks)
Expand Down

0 comments on commit e8abc7f

Please sign in to comment.