[dep|ts] Update dependencies #149
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: Commit Check | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
commit-check-python: | |
name: Commit Check (Python) | |
runs-on: ubuntu-latest | |
container: python:alpine | |
steps: | |
- name: Update environment | |
run: | | |
apk update | |
apk add --no-cache git less openssh | |
- name: Checkout (Pull Request) | |
if: ${{ github.event_name == 'pull_request' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Shallow fetch (Pull Request) | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
git config --global --add safe.directory `pwd` | |
git fetch --progress --shallow-exclude ${{ github.base_ref }} origin +${{ github.sha }}:refs/remotes/origin/${{ github.head_ref }} | |
git log --pretty=oneline | |
- name: Checkout (Push) | |
if: ${{ github.event_name == 'push' }} | |
uses: actions/checkout@v3 | |
- name: Install gitcc | |
working-directory: ./python | |
# pip install gitcc | |
run: | | |
pip install . | |
- name: Check commits (Pull Request) | |
if: ${{ github.event_name == 'pull_request' }} | |
run: | | |
git config --global --add safe.directory `pwd` | |
gitcc --validator gitcc.validation.SimpleTag history --verbose ./ | |
- name: Check commit (Push) | |
if: ${{ github.event_name == 'push' }} | |
run: | | |
git config --global --add safe.directory `pwd` | |
gitcc --validator gitcc.validation.SimpleTag commit ./ |