Skip to content

Commit

Permalink
Feature/add extra version check for pull requests (#67)
Browse files Browse the repository at this point in the history
* Add extra version check for PR's

* Checkout code first
  • Loading branch information
Jeruntu authored Dec 15, 2024
1 parent 13eea9e commit 6c480bb
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/check-omada-versions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Check Omada Versions on Pull Request

on:
pull_request:
branches:
- master

jobs:
check-omada-versions:
runs-on: ubuntu-24.04
strategy:
matrix:
target: ["Beta", "Stable", "Dev"]

steps:
- name: Checkout the code
uses: actions/checkout@v4
with:
submodules: true

- name: Extract Version and Set Tag
id: extract_version
run: |
VERSION=$(yq '.version' "Omada ${{ matrix.target }}/config.yaml")
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "Target ${{ matrix.target }} VERSION: $VERSION"
- name: Check Omada Version Availability
uses: ./.github/actions/version-checks
with:
version: "${{ env.VERSION }}"

0 comments on commit 6c480bb

Please sign in to comment.