1515
1616jobs :
1717
18- version-test :
19- name : testing version action
18+ version :
19+ name : check version
2020 runs-on : ubuntu-latest
2121 outputs :
2222 BUILD_VERSION : ${{ env.BUILD_VERSION }}
2323
2424 steps :
25- - name : checkout
26- uses : actions/checkout@v6
25+ # - name: checkout
26+ # uses: actions/checkout@v6
2727
2828 - name : get version
2929 id : get-version
30- uses : ./ .github/actions/check- version
30+ uses : openapi-processor/openapi-processor-base/ .github/actions/version@main
3131 with :
3232 version-file : ' gradle/libs.versions.toml'
3333 version-path : ' versions.processor'
@@ -38,33 +38,35 @@ jobs:
3838 echo BUILD_VERSION="${{steps.get-version.outputs.build-version}}" >> $GITHUB_ENV
3939 cat $GITHUB_ENV
4040
41- version :
42- name : check version
43- runs-on : ubuntu-latest
44- outputs :
45- BUILD_VERSION : ${{ env.BUILD_VERSION }}
46-
47- steps :
48- - name : Set up Homebrew
49- id : set-up-homebrew
50- uses : Homebrew/actions/setup-homebrew@main
51-
52- - name : checkout
53- uses : actions/checkout@v6
54-
55- - name : install dasel
56- run : |
57- brew install dasel
58- cat $GITHUB_ENV
59-
60- - name : extract version
61- run : |
62- version=`cat gradle/libs.versions.toml | dasel -i toml 'versions.processor'`
63- echo BUILD_VERSION="${version#projectVersion=}" >> $GITHUB_ENV
64- cat $GITHUB_ENV
65-
66- - name : actor
67- run : echo ${{ github.actor }} ${{ github.actor == 'hauner' }}
41+ # SomeUser/SomeRepo/.github/actions/build@main
42+
43+ # version:
44+ # name: check version
45+ # runs-on: ubuntu-latest
46+ # outputs:
47+ # BUILD_VERSION: ${{ env.BUILD_VERSION }}
48+ #
49+ # steps:
50+ # - name: Set up Homebrew
51+ # id: set-up-homebrew
52+ # uses: Homebrew/actions/setup-homebrew@main
53+ #
54+ # - name: checkout
55+ # uses: actions/checkout@v6
56+ #
57+ # - name: install dasel
58+ # run: |
59+ # brew install dasel
60+ # cat $GITHUB_ENV
61+ #
62+ # - name: extract version
63+ # run: |
64+ # version=`cat gradle/libs.versions.toml | dasel -i toml 'versions.processor'`
65+ # echo BUILD_VERSION="${version#projectVersion=}" >> $GITHUB_ENV
66+ # cat $GITHUB_ENV
67+ #
68+ # - name: actor
69+ # run: echo ${{ github.actor }} ${{ github.actor == 'hauner' }}
6870
6971 test :
7072 name : test
@@ -102,7 +104,7 @@ jobs:
102104 path : ' */build/reports'
103105
104106 check-publish :
105- needs : [version, test, version-test ]
107+ needs : [version, test ]
106108 name : check publish
107109
108110 runs-on : ubuntu-latest
0 commit comments