diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b801f0..0ea8a22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,8 +30,10 @@ jobs: - run: poetry install - run: poetry run pytest - - name: Upload Coverage + - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} semantic-release: name: Semantic Release and Publish @@ -52,7 +54,7 @@ jobs: latest-changes: name: Latest Changes runs-on: ubuntu-latest - if: github.event_name == 'pull_request' && github.ref == 'refs/heads/main' && github.event.pull_request.merged == true && github.event_name == 'push' + if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'pull_request' && github.ref == 'refs/heads/main' && github.event.pull_request.merged == true) steps: - uses: actions/checkout@v4 with: @@ -60,3 +62,4 @@ jobs: - uses: docker://tiangolo/latest-changes:0.2.0 with: token: ${{ secrets.GITHUB_TOKEN }} + commit-message: "chore: update README.md"