diff --git a/.github/workflows/simver.yaml b/.github/workflows/simver.yaml index 3daf96f..d0bf5f8 100644 --- a/.github/workflows/simver.yaml +++ b/.github/workflows/simver.yaml @@ -27,7 +27,7 @@ with: { fetch-depth: 0, - repository: "walteh/simver", + repository: "github.com/walteh/simver", ref: "{{ env.GITHUB_WORKFLOW_SHA }}", path: "__simver__", }, diff --git a/actions/simver.yaml b/actions/simver.yaml deleted file mode 100644 index c2aaf1d..0000000 --- a/actions/simver.yaml +++ /dev/null @@ -1,54 +0,0 @@ -{ - name: simver, - concurrency: { group: simver, cancel-in-progress: false }, - permissions: { id-token: write, contents: write, pull-requests: read }, - on: - { - workflow_dispatch: null, - workflow_call: {}, - push: { branches: [main] }, - pull_request: { types: [opened, synchronize, reopened, closed] }, - }, - defaults: { run: { shell: bash } }, - jobs: - { - simver: - { - runs-on: ubuntu-latest, - steps: - [ - { - name: checkout code, - uses: "actions/checkout@v4", - with: { - fetch-depth: 0, - repository: "walteh/simver", - ref: "{{ github.action_ref }}", - dir: "__simver__", - }, - }, - { - name: get current go version from go.mod, - id: go-version, - run: "cat go.mod | grep 'go ' | awk '{print $2}' | xargs -I {} echo \"GO_VERSION={}\" >> $GITHUB_ENV" - }, - { - name: setup golang, - uses: "actions/setup-go@v4", - with: { go-version: '{{ env.GO_VERSION }}' }, - }, - { - name: install dependencies, - run: "cd __simver__ && go mod download", - }, - { - name: install simver, - env: { - GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}", - }, - run: "go run ./__simver__/cmd/simver_gha --read-only=false", - }, - ], - }, - }, -}