diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml new file mode 100644 index 0000000..dd7861b --- /dev/null +++ b/.github/workflows/pull_request.yaml @@ -0,0 +1,15 @@ + +--- + +name: Pull Requests + + +on: + pull_request: {} + + +jobs: + + pull-requests: + name: Pull Request + uses: nofusscomputing/action_pull_requests/.github/workflows/pull-requests.yaml@development diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 45ee8de..f3e08cb 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -118,7 +118,7 @@ jobs: { "schemaVersion": 1, "label": "Unit Test", - "message": "${{ steps.test-report.outputs.passed }} passed | ${{ steps.test-report.outputs.skipped }} skipped", + "message": "${{ steps.test-report.outputs.passed }} passed | ${{ steps.test-report.outputs.skipped }} skipped | ${{ steps.test-report.outputs.failed }} failed", "logoSvg": "python-logo", "color": "#4584b6", "style": "plastic" @@ -318,6 +318,7 @@ jobs: - name: Git add + id: git-add shell: bash run: | echo "[Debug] PWD[${PWD}]"; @@ -330,9 +331,28 @@ jobs: echo "[Debug] ****************************"; git status; echo "[Debug] ****************************"; + + if [ "$(git status -s)" ]; + + echo "changed=true" > $GITHUB_OUTPUT; + + echo "[Info] Changes need to be committed"; + + else + + echo "changed=false" > $GITHUB_OUTPUT; + + echo "[Info] NO changes to be committed"; + + fi + + echo "[Debug] ****************************"; + git add . + - name: Git commit + if: ${{ steps.git-add.outputs.changed }} shell: bash run: | echo "[Debug] PWD[${PWD}]"; @@ -347,6 +367,7 @@ jobs: - name: git push + if: ${{ steps.git-add.outputs.changed }} shell: bash run: | echo "[Debug] PWD[${PWD}]";