Skip to content

Commit

Permalink
create commit again
Browse files Browse the repository at this point in the history
  • Loading branch information
walteh committed May 25, 2024
1 parent ccd3abc commit c5c4aca
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 49 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/simver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ jobs:
simver:
runs-on: ubuntu-latest
steps:
- uses: walteh/simver/cmd/gha-simver
- uses: walteh/simver/cmd/gha-simver@ccd3abc6c36046d739362838f5ae7d96f8100658
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59 changes: 15 additions & 44 deletions .github/workflows/wait-on-simver.yaml
Original file line number Diff line number Diff line change
@@ -1,44 +1,15 @@
{
name: wait-on-simver,
concurrency:
{ group: "wait-on-simver-${{github.ref}}", cancel-in-progress: false },
permissions: { id-token: write, contents: read },
on: { workflow_dispatch: null, workflow_call: {}, push: { branches: "*" } },
defaults: { run: { shell: bash } },
jobs:
{
simver:
{
runs-on: ubuntu-latest,

steps:
[
{
name: checkout code,
uses: "actions/checkout@v4",
with: { fetch-depth: 0 },
},
{
name: setup golang,
uses: "actions/setup-go@v4",
with: { go-version: 1.21.4 },
},
{
name: install simver,
run: "go install github.com/walteh/simver/cmd/wait_on_gha@wait-on-simver-test-c",
},
{
name: run simver,
id: simver,
env:
{
SIMVER_WAIT: "2m",
SIMVER_INTERVAL: "10s",
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}",
},
run: wait_on_simver_gha,
},
],
},
},
}
name: simver
permissions: { id-token: write, contents: write, pull-requests: read }
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, closed]
jobs:
simver:
runs-on: ubuntu-latest
steps:
- uses: walteh/simver/cmd/gha-wait-on-simver@ccd3abc6c36046d739362838f5ae7d96f8100658
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions cmd/gha-simver/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ runs:
- name: install simver
shell: bash
working-directory: __simver__
run: "go install ./cmd/simver_gha"
run: "go install ./cmd/simver-gha"

- name: run simver
shell: bash
working-directory: __source__
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: "ls -la && simver_gha --read-only=false --path=."
run: "simver-gha --read-only=false --path=."
4 changes: 2 additions & 2 deletions cmd/gha-wait-on-simver/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ runs:
- name: install simver
shell: bash
working-directory: __simver__
run: "go install ./cmd/simver_gha"
run: "go install ./cmd/gha-wait-on-simver"

- name: run simver
shell: bash
working-directory: __source__
env:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
run: "ls -la && simver_gha --read-only=false --path=."
run: "gha-wait-on-simver --read-only=false --path=."

0 comments on commit c5c4aca

Please sign in to comment.