onecode zip avoid warnings on duplicate files #80
Workflow file for this run
This file contains hidden or 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: Changelog Check | |
| on: | |
| pull_request: | |
| branches: | |
| - '*.x' | |
| jobs: | |
| check: | |
| name: Check Changelog | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install Python libraries | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e . | |
| - name: Check changelog update | |
| run: | | |
| BRANCH_SHA1=`sha1sum ./docs/changelogs/*.md || echo 'NULL'` | |
| git checkout ${{ github.event.pull_request.base.sha }} | |
| MAIN_SHA1=`sha1sum ./docs/changelogs/*.md || echo 'NULL'` | |
| if [ "$BRANCH_SHA1" == "$MAIN_SHA1" ] | |
| then | |
| echo "Missing changelog information" | |
| exit 1 | |
| else | |
| echo "Changelog OK" | |
| fi |