Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
sdepassio committed Mar 5, 2025
1 parent 92ea421 commit ce07327
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/get-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ jobs:
with:
script: |
let version = '';
if ('${{ inputs.version_file }}'.match('/\pom\.xml$/')) {
if ('${{ inputs.version_file }}'.endsWith('pom.xml')) {
version = execSync(`grep -m 1 "<version>.*</version>" ${{ inputs.version_file }} | sed 's/.*<version>\\(.*\\)<\\/version>.*/\\1/'`).toString().trim();
} else if ('${{ steps.get_stability.outputs.stability }}' === 'testing') {
const branchName = "${{ github.head_ref || github.ref_name }}";
Expand Down

0 comments on commit ce07327

Please sign in to comment.