From 0e8136d4278bdff85b337d0b3a76fdde803f8193 Mon Sep 17 00:00:00 2001 From: Guillaume Brunin <32393981+gbrunin@users.noreply.github.com> Date: Mon, 29 Jul 2024 12:24:51 +0200 Subject: [PATCH 1/2] Explicit env variable setting for auto-gen-release (#6) * Explicit env variables settings. * test * Revert adding other branch to testing --- .github/workflows/test.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8eb80ed87..90b59b464 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -92,7 +92,8 @@ jobs: - test runs-on: ubuntu-latest env: - GITHUB_TOKEN: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PAT: ${{ secrets.PAT }} steps: - uses: rymndhng/release-on-push-action@v0.25.0 with: From 80ac13ebf091777a637e8d2b6b3995e3ed73db75 Mon Sep 17 00:00:00 2001 From: gbrunin Date: Mon, 29 Jul 2024 14:34:51 +0200 Subject: [PATCH 2/2] Revert and disable on forks. --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 90b59b464..e362429ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -91,9 +91,9 @@ jobs: needs: - test runs-on: ubuntu-latest + if: github.repository == 'hackingmaterials/matminer' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PAT: ${{ secrets.PAT }} + GITHUB_TOKEN: ${{ secrets.PAT }} steps: - uses: rymndhng/release-on-push-action@v0.25.0 with: