From a635f429f86724c95a2e8ea19152e0cd8a95f715 Mon Sep 17 00:00:00 2001 From: Nick Miyake Date: Tue, 10 Dec 2024 10:37:31 -0800 Subject: [PATCH] Test GitHub Action referred in separate repo --- .github/workflows/publish-godel-artifacts.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish-godel-artifacts.yml b/.github/workflows/publish-godel-artifacts.yml index 4382e803..583269de 100644 --- a/.github/workflows/publish-godel-artifacts.yml +++ b/.github/workflows/publish-godel-artifacts.yml @@ -1,8 +1,6 @@ name: publish-godel-artifacts -on: - release: - types: - - created +on: push + jobs: run-godel-publish: runs-on: ubuntu-latest @@ -16,7 +14,7 @@ jobs: - id: set-gopath run: echo "::set-output name=GOPATH::$(go env GOPATH)" - id: go-dist-info - uses: ./.github/actions/go-dist-info + uses: github/godel/go-dist-info@nmiyake/test-github-actions with: gopath: ${{ steps.set-gopath.outputs.gopath }} - id: restore-go-dist-from-cache @@ -27,7 +25,7 @@ jobs: ${{ steps.set-gopath.outputs.gopath }}/go-dists/${{ steps.go-dist-info.outputs.go-dist-version }} key: ${{ runner.os }}-${{ steps.go-dist-info.outputs.go-dist-version }} - id: go-dist-setup - uses: ./.github/actions/go-dist-setup + uses: github/godel/go-dist-setup@nmiyake/test-github-actions with: gopath: ${{ steps.set-gopath.outputs.gopath }} go-version: ${{ steps.go-dist-info.outputs.go-dist-version }} @@ -48,6 +46,3 @@ jobs: - run: ./godelw dist env: GOPATH: "/home/runner/go" - - run: ./godelw publish github --add-v-prefix --api-url=$GITHUB_API_URL --user=palantir --repository=godel-conjure-plugin --token=${{ secrets.GITHUB_TOKEN }} - env: - GOPATH: "/home/runner/go"