Skip to content
This repository has been archived by the owner on Dec 27, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into dependabot/npm_and_yarn/quasar/extras-1.16.15
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Dec 27, 2024
2 parents 74d6458 + 2174513 commit 1ca0c6a
Showing 1 changed file with 58 additions and 58 deletions.
116 changes: 58 additions & 58 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,66 +10,66 @@ on:
workflow_dispatch:

jobs:
version_checker:
runs-on: ubuntu-latest

outputs:
VERSION_MATCH: ${{ steps.compare-versions.outputs.VERSION_MATCH }}

# permissions:
# contents: write
# pull-requests: write
# repository-projects: write

steps:
- name: Check out Git repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Read package version
uses: ZvonimirSun/read-package-version-actions@v2
id: package-version

- name: Get Latest Release Version
id: get-latest-release
uses: pozetroninc/[email protected]
with:
repository: ${{ github.repository }}
# token: ${{ secrets.GITHUB_TOKEN }}
# excludes: draft
# uses: InsonusK/[email protected]
# with:
# myToken: ${{ secrets.GITHUB_TOKEN }}
# exclude_types: 'draft'

- name: Compare versions and increment if needed
id: compare-versions
run: |
PACKAGE_VERSION="${{ steps.package-version.outputs.version }}"
GITHUB_RELEASE_VERSION="${{ steps.get-latest-release.outputs.release }}"
# Strip leading 'v' if present
GITHUB_RELEASE_VERSION="${GITHUB_RELEASE_VERSION#v}"
echo "Package version: $PACKAGE_VERSION"
echo "GitHub release version: $GITHUB_RELEASE_VERSION"
if [ "$PACKAGE_VERSION" = "$GITHUB_RELEASE_VERSION" ]; then
VERSION_MATCH=true
else
VERSION_MATCH=false
fi
echo "Versions are equal: $VERSION_MATCH"
echo "VERSION_MATCH=${VERSION_MATCH}" >> $GITHUB_ENV
echo "VERSION_MATCH=${VERSION_MATCH}" >> $GITHUB_OUTPUT
exit 0
- name: Create a pull request with version bump if needed
if: ${{ steps.compare-versions.outputs.VERSION_MATCH == 'true' }}
uses: r7kamura/[email protected]
with:
release_type: 'patch'
# version_checker:
# runs-on: ubuntu-latest

# outputs:
# VERSION_MATCH: ${{ steps.compare-versions.outputs.VERSION_MATCH }}

# # permissions:
# # contents: write
# # pull-requests: write
# # repository-projects: write

# steps:
# - name: Check out Git repository
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Read package version
# uses: ZvonimirSun/read-package-version-actions@v2
# id: package-version

# - name: Get Latest Release Version
# id: get-latest-release
# uses: pozetroninc/[email protected]
# with:
# repository: ${{ github.repository }}
# # token: ${{ secrets.GITHUB_TOKEN }}
# # excludes: draft
# # uses: InsonusK/[email protected]
# # with:
# # myToken: ${{ secrets.GITHUB_TOKEN }}
# # exclude_types: 'draft'

# - name: Compare versions and increment if needed
# id: compare-versions
# run: |
# PACKAGE_VERSION="${{ steps.package-version.outputs.version }}"
# GITHUB_RELEASE_VERSION="${{ steps.get-latest-release.outputs.release }}"
# # Strip leading 'v' if present
# GITHUB_RELEASE_VERSION="${GITHUB_RELEASE_VERSION#v}"
# echo "Package version: $PACKAGE_VERSION"
# echo "GitHub release version: $GITHUB_RELEASE_VERSION"
# if [ "$PACKAGE_VERSION" = "$GITHUB_RELEASE_VERSION" ]; then
# VERSION_MATCH=true
# else
# VERSION_MATCH=false
# fi
# echo "Versions are equal: $VERSION_MATCH"
# echo "VERSION_MATCH=${VERSION_MATCH}" >> $GITHUB_ENV
# echo "VERSION_MATCH=${VERSION_MATCH}" >> $GITHUB_OUTPUT
# exit 0

# - name: Create a pull request with version bump if needed
# if: ${{ steps.compare-versions.outputs.VERSION_MATCH == 'true' }}
# uses: r7kamura/[email protected]
# with:
# release_type: 'patch'

release:
needs: version_checker
# needs: version_checker
runs-on: ${{ matrix.os }}

strategy:
Expand Down

0 comments on commit 1ca0c6a

Please sign in to comment.