Skip to content

AAE-20402 Fix MAP_ALL variables mapping (#4600) #25

AAE-20402 Fix MAP_ALL variables mapping (#4600)

AAE-20402 Fix MAP_ALL variables mapping (#4600) #25

Workflow file for this run

name: Push - Validate, Build and Release
permissions:
actions: write
checks: write
contents: write
on:
push:
branches:
- develop
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
jobs:
pre-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: pre-commit
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@469ed8f7c8198c4f8476392d944b2568e4043c5a # v5.13.1
with:
skip_checkout: true
- name: Ensure SHA pinned actions
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@ba37328d4ea95eaf8b3bd6c6cef308f709a5f2ec # v3.0.3
build:
runs-on: ubuntu-latest
needs: pre-checks
steps:
- name: Checkout repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
- uses: actions/cache@704facf57e6136b1bc63b828d79edcd491f0ee84 # v3.3.2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Setup Java JDK 21
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # 4.0.0
with:
java-version: 21
distribution: 'temurin'
- uses: Alfresco/alfresco-build-tools/.github/actions/update-pom-to-next-pre-release@469ed8f7c8198c4f8476392d944b2568e4043c5a # v5.13.1
id: update-pom-to-next-version
- name: Update VERSION file
run: |
echo ${{steps.update-pom-to-next-version.outputs.next-prerelease}} > VERSION
- name: Set VERSION env variable
run: |
VERSION=$(cat VERSION)
echo set VERSION=$VERSION
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Build and Test with Maven (and maybe Deploy)
shell: bash
run: mvn deploy ${{ env.MAVEN_CLI_OPTS}}
env:
MAVEN_CLI_OPTS: --show-version --no-transfer-progress --settings settings.xml
MAVEN_USERNAME: ${{ secrets.NEXUS_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
- name: Echo Longest Test Run
uses: ./.github/actions/echo-longest-run
- name: Configure git user
run: |
git config --global user.name $GITHUB_USERNAME
git config --global user.email $GITHUB_USERNAME@users.noreply.github.com
env:
GITHUB_USERNAME: ${{ secrets.BOT_GITHUB_USERNAME }}
- name: Create release tag
run: |
git commit -am "Release $VERSION" --allow-empty
git tag -fa $VERSION -m "Release version $VERSION"
git push -f -q origin $VERSION
- name: Get branch name
uses: Alfresco/alfresco-build-tools/.github/actions/get-branch-name@469ed8f7c8198c4f8476392d944b2568e4043c5a # v5.13.1
- name: Propagate
uses: Alfresco/alfresco-build-tools/.github/actions/jx-updatebot-pr@469ed8f7c8198c4f8476392d944b2568e4043c5a # v5.13.1
if: ${{ env.BRANCH_NAME == 'develop' }}
env:
DEVELOPMENT_BRANCH: ${{ github.ref_name }}
with:
version: ${{ env.VERSION }}
auto-merge: 'true'
labels: ${{ env.DEVELOPMENT_BRANCH }}
base-branch-name: ${{ env.DEVELOPMENT_BRANCH }}
git-username: ${{ secrets.BOT_GITHUB_USERNAME }}
git-token: ${{ secrets.BOT_GITHUB_TOKEN }}
git-author-name: ${{ secrets.BOT_GITHUB_USERNAME }}
notify:
runs-on: ubuntu-latest
needs: build
if: always() && failure()
steps:
- name: Slack Notification
uses: Alfresco/alfresco-build-tools/.github/actions/send-slack-notification@469ed8f7c8198c4f8476392d944b2568e4043c5a # v5.13.1
with:
channel-id: 'eng-hxp-studio-activiti-gh-notifs'
token: ${{ secrets.SLACK_NOTIFICATION_BOT_TOKEN }}