From 62a343d652687f52f21b452f9bba078c1f868491 Mon Sep 17 00:00:00 2001 From: Andrew Kogut Date: Wed, 4 Dec 2024 21:20:27 +0100 Subject: [PATCH] Update workflows --- .github/workflows/release.yml | 3 +-- .github/workflows/test.yml | 11 ++++++++--- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fe92d23..71c506f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,8 +23,7 @@ jobs: git commit -am "chore: Bump version ($VERSION)" git push --set-upstream origin "bump-version-$VERSION" PR_URL="$(gh pr create --title "chore: Bump version ($VERSION)" --body 'This is automatic PR to bump version')" - gh pr merge --auto -r "$PR_URL" - gh pr merge --auto + gh pr merge --auto --squash "$PR_URL" gh release create "$VERSION" \ --repo="$GITHUB_REPOSITORY" \ --title="${VERSION#v}" \ diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2dea9d2..5e4e282 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,10 +1,15 @@ name: Test on: + pull_request: + branches: + - master push: - branches: ['master'] - pull_request_target: - branches: ['master'] + branches: + - master + +permissions: + contents: read jobs: test: