From 1d6f30cfd12eede6ba831b9529d1a4b4a903b32c Mon Sep 17 00:00:00 2001 From: Matthew Turney Date: Mon, 18 Dec 2023 02:17:52 +0000 Subject: [PATCH 1/3] tags will never be on a pull request --- .github/workflows/build-and-deploy.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 4e39154..f2b5923 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -55,9 +55,7 @@ jobs: path: ./out deploy: - if: - github.event_name != 'pull_request' && startsWith(github.ref, - 'refs/tags/v') + if: startsWith(github.ref,'refs/tags/v') permissions: contents: read pages: write From f188f39b13aa36cd1d4f9932a1118bb7d795af8b Mon Sep 17 00:00:00 2001 From: Matthew Turney Date: Mon, 18 Dec 2023 02:18:27 +0000 Subject: [PATCH 2/3] docs(changeset): simplify logic to block deploys on PRs --- .changeset/breezy-chicken-tickle.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/breezy-chicken-tickle.md diff --git a/.changeset/breezy-chicken-tickle.md b/.changeset/breezy-chicken-tickle.md new file mode 100644 index 0000000..329d8c0 --- /dev/null +++ b/.changeset/breezy-chicken-tickle.md @@ -0,0 +1,5 @@ +--- +"pho3nixf1re.net": patch +--- + +simplify logic to block deploys on PRs From 9dba5f83c24639de1303d0c88319210df17c565d Mon Sep 17 00:00:00 2001 From: Matthew Turney Date: Mon, 18 Dec 2023 02:44:47 +0000 Subject: [PATCH 3/3] another attempt --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c42e38e..14bc17c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,14 +13,15 @@ jobs: name: Setup dependencies runs-on: ubuntu-latest env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT }} steps: - name: Checkout Repo uses: actions/checkout@v4 with: - ssh-key: '${{ secrets.COMMIT_KEY }}' + token: ${{ secrets.PAT }} - name: Configure git author run: | + git config --unset http.https://github.com/.extraheader git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - name: Setup Node.js