Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogyuchi committed Jun 13, 2024
1 parent 0749a54 commit bde316d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/call-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ on:

jobs:
call:
uses: 4m-mazi/gh-test/.github/workflows/debug.yml@4cf8a995b52ae9b78a8b9694d473e8a3453281de
uses: 4m-mazi/gh-test/.github/workflows/test.yml@main
42 changes: 29 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,40 @@
name: test
on:
push:
branches: ["**"]
workflow_dispatch:
inputs: # null for another event
skip:
type: boolean
default: false
workflow_call:
permissions: {}

env:
HERE: "4m-mazi/gh-test/.github/workflows/test.yml"

jobs:
test1:
permissions:
contents: read
if: >
true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
sparse-checkout: |
${{ github.workflow }}
sparse-checkout-cone-mode: false
- run: |
test2:
if: >-
true
runs-on: ubuntu-latest
steps:
- run: ''
ls -lah
- id: get-ref
uses: docker://mikefarah/yq:4.44.1-githubaction
with:
args: |-
yq '[.jobs.*.uses | select(tag == "!!str" and test("^${{ env.HERE }}@"))][0] | sub("^${{ env.HERE }}@", "")' ${{ github.workflow }}
- id: test-ref
run: |
echo "result=v1.3.0" >> "$GITHUB_OUTPUT"
- run: echo 4m-mazi/souji-action@${{ steps.test-ref.outputs.result }}
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
with:
repository: 4m-mazi/gh-test
ref: ${{ steps.get-ref.outputs.result }}
path: 'souji-action'

0 comments on commit bde316d

Please sign in to comment.