Time: 986 ms (34.49%), Space: 75 MB (22.45%) - LeetHub #32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Language Recognition | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check_syntax_highlighting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Git attributes | |
run: | | |
echo '*.sql linguist-language=sql' >> .gitattributes | |
git config --local user.email "actions@github.com" | |
git config --local user.name "GitHub Actions" | |
- name: Commit Git attributes | |
run: | | |
git add .gitattributes | |
git commit -m "Configure SQL language recognition" | |
- name: Push Git attributes | |
uses: ad-m/github-push-action@master # Replace 'v1' with a valid version tag | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} |