diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 16eb9d5682..2279e1ca8a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ env: jobs: build-test-cache: - if: (!contains(github.event.head_commit.message, 'ci skip') && !startsWith(github.ref, 'refs/tags/') && !github.event.act) + if: (!contains(github.event.head_commit.message, 'ci skip') && !startsWith(github.ref, 'refs/tags/') && !github.event.act && github.repository == 'linode/apl-core') runs-on: ubuntu-22.04 steps: - name: Set env @@ -58,7 +58,7 @@ jobs: push-to-docker: needs: build-test-cache - if: always() && ((contains(needs.build-test-cache.result, 'success') && !contains(needs.integration.outputs.started, 'true')) || (contains(needs.integration.result, 'success'))) && !github.event.act && github.actor != 'dependabot[bot]' + if: always() && ((contains(needs.build-test-cache.result, 'success') && !contains(needs.integration.outputs.started, 'true')) || (contains(needs.integration.result, 'success'))) && !github.event.act && github.actor != 'dependabot[bot]' && github.repository == 'linode/apl-core' runs-on: ubuntu-22.04 steps: - name: Push to docker hub @@ -123,7 +123,7 @@ jobs: echo "machine github.com login ${{ env.BOT_USERNAME }} password ${{ secrets.BOT_TOKEN }}" > ~/.netrc git tag -am "$COMMIT_MSG" $release_tag && git push --follow-tags # Cut the CHANGELOG.md file up to the second occurence of the line starting with `## [` (meaning two #, a space,a square bracket). - # This way we always get the changes of the latest patch (if any) and the latest minor. + # This way we always get the changes of the latest patch (if any) and the latest minor. awk '/^## \[/{count++; if(count==2) exit} {print}' CHANGELOG.md > NEW_CHANGELOG.md - name: Create GitHub release uses: ncipollo/release-action@v1.21.0