.github/workflows/release.yml | ●●●●● patch | view | raw | blame | history | |
.github/workflows/test.yml | ●●●●● patch | view | raw | blame | history | |
.github/workflows/update-deps.yml | ●●●●● patch | view | raw | blame | history |
.github/workflows/release.yml
@@ -24,14 +24,14 @@ - id: vars name: Get project variables run: | echo -n "::set-output name=keycloakVersion::" mvn -q help:evaluate -Dexpression=keycloak.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' echo -n "::set-output name=artifactId::" mvn -q help:evaluate -Dexpression=project.artifactId -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' echo -n "::set-output name=projectName::" mvn -q help:evaluate -Dexpression=project.name -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z :,.-]+$' echo -n "::set-output name=projectVersion::" mvn -q help:evaluate -Dexpression=project.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' echo -n "keycloakVersion=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=keycloak.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' >> $GITHUB_OUTPUT echo -n "artifactId=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=project.artifactId -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' >> $GITHUB_OUTPUT echo -n "projectName=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=project.name -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z :,.-]+$' >> $GITHUB_OUTPUT echo -n "projectVersion=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=project.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' >> $GITHUB_OUTPUT - name: Build project run: | .github/workflows/test.yml
@@ -22,14 +22,14 @@ - id: vars name: Get project variables run: | echo -n "::set-output name=keycloakVersion::" mvn -q help:evaluate -Dexpression=keycloak.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' echo -n "::set-output name=artifactId::" mvn -q help:evaluate -Dexpression=project.artifactId -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' echo -n "::set-output name=projectName::" mvn -q help:evaluate -Dexpression=project.name -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z :,.-]+$' echo -n "::set-output name=projectVersion::" mvn -q help:evaluate -Dexpression=project.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' echo -n "keycloakVersion=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=keycloak.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' >> $GITHUB_OUTPUT echo -n "artifactId=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=project.artifactId -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' >> $GITHUB_OUTPUT echo -n "projectName=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=project.name -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z :,.-]+$' >> $GITHUB_OUTPUT echo -n "projectVersion=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=project.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' >> $GITHUB_OUTPUT - name: Build project run: | .github/workflows/update-deps.yml
@@ -29,20 +29,23 @@ - id: vars name: Get project variables run: | echo -n "::set-output name=versionUpdated::" [ -f pom.xml.versionsBackup ] && echo 1 || echo 0 echo -n "::set-output name=keycloakVersion::" mvn -q help:evaluate -Dexpression=keycloak.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' if [ -f pom.xml.versionsBackup ]; then echo "versionUpdated=1" else echo "versionUpdated=0" fi >> $GITHUB_OUTPUT echo -n "keycloakVersion=" >> $GITHUB_OUTPUT mvn -q help:evaluate -Dexpression=keycloak.version -DforceStdout 2> /dev/null | grep -E '^[0-9a-zA-Z.-]+$' >> $GITHUB_OUTPUT - id: check_branch name: Check if branch exists run: | echo -n "::set-output name=commit::" echo -n "commit=" >> $GITHUB_OUTPUT if [ '${{ steps.vars.outputs.versionUpdated }}' == '1' ]; then git ls-remote origin 'feature/keycloak-update-${{ steps.vars.outputs.keycloakVersion }}' else git rev-parse HEAD fi fi >> $GITHUB_OUTPUT - id: reset_repo name: Reset repository