updated version and python in pyproject #396
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
on: [push] | |
jobs: | |
check_version: | |
if: false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
- name: Check for changes in Dockerfile or __version__ file | |
id: check_files | |
run: | | |
git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep -E 'Dockerfile|__version__' | |
if [ $? -eq 0 ]; then | |
echo "::set-output name=changed::true" | |
else | |
echo "::set-output name=changed::false" | |
fi | |
- name: Create GitHub Issue for Version Change | |
if: steps.check_files.outputs.changed == 'true' | |
uses: octokit/[email protected] | |
with: | |
route: POST /repos/${{ github.repository }}/issues | |
title: "Version Change Detected" | |
body: "A change was detected in the Dockerfile or __version__ file." | |
labels: "version-change" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |