|
10 | 10 | workflow_dispatch:
|
11 | 11 |
|
12 | 12 | jobs:
|
13 |
| - version_checker: |
14 |
| - runs-on: ubuntu-latest |
15 |
| - |
16 |
| - outputs: |
17 |
| - VERSION_MATCH: ${{ steps.compare-versions.outputs.VERSION_MATCH }} |
18 |
| - |
19 |
| - # permissions: |
20 |
| - # contents: write |
21 |
| - # pull-requests: write |
22 |
| - # repository-projects: write |
23 |
| - |
24 |
| - steps: |
25 |
| - - name: Check out Git repository |
26 |
| - uses: actions/checkout@v4 |
27 |
| - with: |
28 |
| - fetch-depth: 0 |
29 |
| - |
30 |
| - - name: Read package version |
31 |
| - uses: ZvonimirSun/read-package-version-actions@v2 |
32 |
| - id: package-version |
33 |
| - |
34 |
| - - name: Get Latest Release Version |
35 |
| - id: get-latest-release |
36 |
| - uses: pozetroninc/github-action-get-latest-release@v0.8.0 |
37 |
| - with: |
38 |
| - repository: ${{ github.repository }} |
39 |
| - # token: ${{ secrets.GITHUB_TOKEN }} |
40 |
| - # excludes: draft |
41 |
| - # uses: InsonusK/get-latest-release@v1.1.0 |
42 |
| - # with: |
43 |
| - # myToken: ${{ secrets.GITHUB_TOKEN }} |
44 |
| - # exclude_types: 'draft' |
45 |
| - |
46 |
| - - name: Compare versions and increment if needed |
47 |
| - id: compare-versions |
48 |
| - run: | |
49 |
| - PACKAGE_VERSION="${{ steps.package-version.outputs.version }}" |
50 |
| - GITHUB_RELEASE_VERSION="${{ steps.get-latest-release.outputs.release }}" |
51 |
| - # Strip leading 'v' if present |
52 |
| - GITHUB_RELEASE_VERSION="${GITHUB_RELEASE_VERSION#v}" |
53 |
| - echo "Package version: $PACKAGE_VERSION" |
54 |
| - echo "GitHub release version: $GITHUB_RELEASE_VERSION" |
55 |
| - if [ "$PACKAGE_VERSION" = "$GITHUB_RELEASE_VERSION" ]; then |
56 |
| - VERSION_MATCH=true |
57 |
| - else |
58 |
| - VERSION_MATCH=false |
59 |
| - fi |
60 |
| - echo "Versions are equal: $VERSION_MATCH" |
61 |
| - echo "VERSION_MATCH=${VERSION_MATCH}" >> $GITHUB_ENV |
62 |
| - echo "VERSION_MATCH=${VERSION_MATCH}" >> $GITHUB_OUTPUT |
63 |
| - exit 0 |
64 |
| -
|
65 |
| - - name: Create a pull request with version bump if needed |
66 |
| - if: ${{ steps.compare-versions.outputs.VERSION_MATCH == 'true' }} |
67 |
| - uses: r7kamura/bump-request@v0.5.0 |
68 |
| - with: |
69 |
| - release_type: 'patch' |
| 13 | + # version_checker: |
| 14 | + # runs-on: ubuntu-latest |
| 15 | + |
| 16 | + # outputs: |
| 17 | + # VERSION_MATCH: ${{ steps.compare-versions.outputs.VERSION_MATCH }} |
| 18 | + |
| 19 | + # # permissions: |
| 20 | + # # contents: write |
| 21 | + # # pull-requests: write |
| 22 | + # # repository-projects: write |
| 23 | + |
| 24 | + # steps: |
| 25 | + # - name: Check out Git repository |
| 26 | + # uses: actions/checkout@v4 |
| 27 | + # with: |
| 28 | + # fetch-depth: 0 |
| 29 | + |
| 30 | + # - name: Read package version |
| 31 | + # uses: ZvonimirSun/read-package-version-actions@v2 |
| 32 | + # id: package-version |
| 33 | + |
| 34 | + # - name: Get Latest Release Version |
| 35 | + # id: get-latest-release |
| 36 | + # uses: pozetroninc/github-action-get-latest-release@v0.8.0 |
| 37 | + # with: |
| 38 | + # repository: ${{ github.repository }} |
| 39 | + # # token: ${{ secrets.GITHUB_TOKEN }} |
| 40 | + # # excludes: draft |
| 41 | + # # uses: InsonusK/get-latest-release@v1.1.0 |
| 42 | + # # with: |
| 43 | + # # myToken: ${{ secrets.GITHUB_TOKEN }} |
| 44 | + # # exclude_types: 'draft' |
| 45 | + |
| 46 | + # - name: Compare versions and increment if needed |
| 47 | + # id: compare-versions |
| 48 | + # run: | |
| 49 | + # PACKAGE_VERSION="${{ steps.package-version.outputs.version }}" |
| 50 | + # GITHUB_RELEASE_VERSION="${{ steps.get-latest-release.outputs.release }}" |
| 51 | + # # Strip leading 'v' if present |
| 52 | + # GITHUB_RELEASE_VERSION="${GITHUB_RELEASE_VERSION#v}" |
| 53 | + # echo "Package version: $PACKAGE_VERSION" |
| 54 | + # echo "GitHub release version: $GITHUB_RELEASE_VERSION" |
| 55 | + # if [ "$PACKAGE_VERSION" = "$GITHUB_RELEASE_VERSION" ]; then |
| 56 | + # VERSION_MATCH=true |
| 57 | + # else |
| 58 | + # VERSION_MATCH=false |
| 59 | + # fi |
| 60 | + # echo "Versions are equal: $VERSION_MATCH" |
| 61 | + # echo "VERSION_MATCH=${VERSION_MATCH}" >> $GITHUB_ENV |
| 62 | + # echo "VERSION_MATCH=${VERSION_MATCH}" >> $GITHUB_OUTPUT |
| 63 | + # exit 0 |
| 64 | + |
| 65 | + # - name: Create a pull request with version bump if needed |
| 66 | + # if: ${{ steps.compare-versions.outputs.VERSION_MATCH == 'true' }} |
| 67 | + # uses: r7kamura/bump-request@v0.5.0 |
| 68 | + # with: |
| 69 | + # release_type: 'patch' |
70 | 70 |
|
71 | 71 | release:
|
72 |
| - needs: version_checker |
| 72 | + # needs: version_checker |
73 | 73 | runs-on: ${{ matrix.os }}
|
74 | 74 |
|
75 | 75 | strategy:
|
|
0 commit comments