Gets the Shopware version that matches the current branch.
- Finds a matching Shopware version based on the current git reference
- Returns a fallback version if no matching branch is found
- Useful for testing against specific Shopware versions
| Input | Description | Required | Default |
|---|---|---|---|
fallback |
The fallback version if there's no matching branch | No | trunk |
repo |
The repo where to look for matching refs | No | shopware/shopware |
ref |
The git reference to match (defaults to github.ref) |
No | - |
base-ref |
The base reference for pull requests (defaults to github.base_ref) |
No | - |
head-ref |
The head reference for pull requests (defaults to github.head_ref) |
No | - |
shopware-github-token |
Token used for checking out the shopware repository | No | - |
- uses: shopware/github-actions/shopware-version@main
id: version- uses: shopware/github-actions/shopware-version@main
id: version
with:
fallback: 6.5.0.0- uses: shopware/github-actions/shopware-version@main
id: version
with:
repo: my-org/shopware
fallback: trunk
shopware-github-token: ${{ secrets.SHOPWARE_TOKEN }}- uses: shopware/github-actions/shopware-version@main
id: version
- name: Use version
run: echo "Shopware version is ${{ steps.version.outputs.shopware-version }}"