Skip to content

Commit

Permalink
fix: Update DEFAULT_BRANCH and VALIDATE_ALL_CODEBASE in lint workflow
Browse files Browse the repository at this point in the history
The commit fixes the lint workflow by updating the DEFAULT_BRANCH to use github.ref_name and setting VALIDATE_ALL_CODEBASE based on github.event_name for non-pull_request events. Also, minor formatting adjustment in kvm_generic.sh.
  • Loading branch information
marcinbojko committed Nov 23, 2024
1 parent d52b9ea commit 6de82ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/01_lint_me.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
uses: github/super-linter/@main
env:
LINTER_RULES_PATH: /
DEFAULT_BRANCH: main
DEFAULT_BRANCH: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_ALL_CODEBASE: true
VALIDATE_ALL_CODEBASE: ${{ github.event_name != 'pull_request' }}
VALIDATE_YAML: true
2 changes: 1 addition & 1 deletion kvm_generic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,5 @@ time_diff_seconds=$(((end_time - start_time) / 1000000000))
hours=$((time_diff_seconds / 3600))
minutes=$(((time_diff_seconds % 3600) / 60))
seconds=$((time_diff_seconds % 60))

echo -e "${GREEN}Packer build took: ${hours} hours, ${minutes} minutes, and ${seconds} seconds.${NC}"

0 comments on commit 6de82ab

Please sign in to comment.