mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
Bumps the github-actions group with 7 updates: | Package | From | To | | --- | --- | --- | | [github/codeql-action](https://github.com/github/codeql-action) | `4.37.3` | `4.37.9` | | [actions/download-artifact](https://github.com/actions/download-artifact) | `7` | `8` | | [Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space](https://github.com/alfresco/alfresco-build-tools) | `18.21.0` | `18.26.0` | | [Alfresco/alfresco-build-tools/.github/actions/kubectl-keep-nslogs](https://github.com/alfresco/alfresco-build-tools) | `18.21.0` | `18.26.0` | | [crowdin/github-action](https://github.com/crowdin/github-action) | `2.17.0` | `3.0.0` | | [Alfresco/alfresco-build-tools/.github/actions/get-commit-message](https://github.com/alfresco/alfresco-build-tools) | `18.21.0` | `18.26.0` | | [Alfresco/alfresco-build-tools/.github/actions/configure-git-author](https://github.com/alfresco/alfresco-build-tools) | `18.21.0` | `18.26.0` | Updates `github/codeql-action` from 4.37.3 to 4.37.9 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v4.37.3...v4.37.9) Updates `actions/download-artifact` from 7 to 8 - [Release notes](https://github.com/actions/download-artifact/releases) - [Commits](https://github.com/actions/download-artifact/compare/v7...v8) Updates `Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space` from 18.21.0 to 18.26.0 - [Release notes](https://github.com/alfresco/alfresco-build-tools/releases) - [Commits](https://github.com/alfresco/alfresco-build-tools/compare/e87345fb177248fc5bdc7838107f098438818df1...d2981070adf1a68c3ddcbf0ebba193467261c9b3) Updates `Alfresco/alfresco-build-tools/.github/actions/kubectl-keep-nslogs` from 18.21.0 to 18.26.0 - [Release notes](https://github.com/alfresco/alfresco-build-tools/releases) - [Commits](https://github.com/alfresco/alfresco-build-tools/compare/e87345fb177248fc5bdc7838107f098438818df1...d2981070adf1a68c3ddcbf0ebba193467261c9b3) Updates `crowdin/github-action` from 2.17.0 to 3.0.0 - [Release notes](https://github.com/crowdin/github-action/releases) - [Commits](https://github.com/crowdin/github-action/compare/c7af9bc98b01694653031fef2a0dc6c7888ce9bc...e4a6c1338b4063c77d46a81875265f9e8bd76f95) Updates `Alfresco/alfresco-build-tools/.github/actions/get-commit-message` from 18.21.0 to 18.26.0 - [Release notes](https://github.com/alfresco/alfresco-build-tools/releases) - [Commits](https://github.com/alfresco/alfresco-build-tools/compare/e87345fb177248fc5bdc7838107f098438818df1...d2981070adf1a68c3ddcbf0ebba193467261c9b3) Updates `Alfresco/alfresco-build-tools/.github/actions/configure-git-author` from 18.21.0 to 18.26.0 - [Release notes](https://github.com/alfresco/alfresco-build-tools/releases) - [Commits](https://github.com/alfresco/alfresco-build-tools/compare/e87345fb177248fc5bdc7838107f098438818df1...d2981070adf1a68c3ddcbf0ebba193467261c9b3) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.37.9 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/download-artifact dependency-version: '8' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space dependency-version: 18.26.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: Alfresco/alfresco-build-tools/.github/actions/kubectl-keep-nslogs dependency-version: 18.26.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: crowdin/github-action dependency-version: 3.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: Alfresco/alfresco-build-tools/.github/actions/get-commit-message dependency-version: 18.26.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: Alfresco/alfresco-build-tools/.github/actions/configure-git-author dependency-version: 18.26.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
234 lines
6.6 KiB
YAML
234 lines
6.6 KiB
YAML
name: Release workflow
|
|
run-name: Release workflow triggered from ${{ github.ref_name }} branch
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
publish-to-docker:
|
|
description: 'Publish to Docker'
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
publish-to-quay:
|
|
description: 'Publish to Quay'
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
publish-to-npm:
|
|
description: 'Publish NPM libraries'
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
publish-git-tag:
|
|
description: 'Publish Git Tag'
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
npm-tag:
|
|
description: 'NPM tag that libraries will be published with'
|
|
required: false
|
|
type: string
|
|
default: ''
|
|
dry-run-release:
|
|
description: 'Enable dry-run'
|
|
required: false
|
|
type: boolean
|
|
default: true
|
|
push:
|
|
branches:
|
|
- master
|
|
- develop
|
|
|
|
permissions:
|
|
id-token: write # Required for OIDC
|
|
contents: read
|
|
|
|
env:
|
|
BASE_URL: ${{ secrets.PIPELINE_ENV_URL }}
|
|
ADMIN_EMAIL: ${{ secrets.PIPELINE_ADMIN_USERNAME }}
|
|
ADMIN_PASSWORD: ${{ secrets.PIPELINE_ADMIN_PASSWORD }}
|
|
PLAYWRIGHT_E2E_HOST: ${{ secrets.PLAYWRIGHT_E2E_HOST }}
|
|
|
|
jobs:
|
|
lint:
|
|
if: github.event_name == 'workflow_dispatch'
|
|
name: 'lint'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: ./.github/actions/setup
|
|
- run: npm ci
|
|
- run: npm run affected:lint -- --base=origin/develop
|
|
- run: npm run stylelint
|
|
|
|
unit-tests:
|
|
if: github.event_name == 'workflow_dispatch'
|
|
needs: [lint]
|
|
name: "Unit tests: ${{ matrix.unit-tests.name }}"
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
unit-tests:
|
|
- name: "aca-content"
|
|
- name: "aca-shared"
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: ./.github/actions/before-install
|
|
- run: npm ci
|
|
- run: npm run affected:test -- --browsers=ChromeHeadless --watch=false $TEST_OPTS --base=origin/develop
|
|
|
|
publish-docker-registry:
|
|
if: ${{ always() }}
|
|
needs: [lint, unit-tests]
|
|
name: "Publish to Quay"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check previous jobs status
|
|
if: ${{ inputs.publish-to-quay == 'false' || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
|
run: exit 1
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: ./.github/actions/setup
|
|
with:
|
|
npm_tag: ${{ inputs.npm-tag }}
|
|
|
|
- name: Get Tag
|
|
uses: ./.github/actions/get-image-tag
|
|
with:
|
|
branch_name: ${{ env.BRANCH_NAME }}
|
|
|
|
- name: publish
|
|
uses: ./.github/actions/publish-image
|
|
with:
|
|
registry: quay.io
|
|
tag_version: ${{ env.TAG_VERSION }}
|
|
username: ${{ secrets.QUAY_USERNAME }}
|
|
password: ${{ secrets.QUAY_PASSWORD }}
|
|
dry-run: ${{ inputs.dry-run-release }}
|
|
|
|
publish-to-dockerhub:
|
|
if: ${{ always() }}
|
|
needs: [lint, unit-tests]
|
|
name: "Publish to Dockerhub"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check previous jobs status
|
|
if: ${{ inputs.publish-to-docker == 'false' || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
|
run: exit 1
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: ./.github/actions/setup
|
|
with:
|
|
npm_tag: ${{ inputs.npm-tag }}
|
|
|
|
- name: Get Tag
|
|
uses: ./.github/actions/get-image-tag
|
|
with:
|
|
branch_name: ${{ env.BRANCH_NAME }}
|
|
|
|
- name: publish
|
|
uses: ./.github/actions/publish-image
|
|
with:
|
|
registry: docker.io
|
|
tag_version: ${{ env.TAG_VERSION }}
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
dry-run: ${{ inputs.dry-run-release }}
|
|
|
|
publish-git-tag:
|
|
if: ${{ always() }}
|
|
needs: [lint, unit-tests]
|
|
name: "Publish Git Tag"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Check previous jobs status
|
|
if: ${{ inputs.publish-git-tag == 'false' || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
|
run: exit 1
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 0
|
|
- uses: ./.github/actions/setup
|
|
with:
|
|
npm_tag: ${{ inputs.npm-tag }}
|
|
- uses: Alfresco/alfresco-build-tools/.github/actions/configure-git-author@d2981070adf1a68c3ddcbf0ebba193467261c9b3 #v18.26.0
|
|
with:
|
|
username: ${{ vars.BOT_GITHUB_USERNAME }}
|
|
email: ${{ vars.BOT_GITHUB_EMAIL }}
|
|
global: true
|
|
- name: publish
|
|
uses: ./.github/actions/git-tag
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch_name: ${{ env.BRANCH_NAME }}
|
|
dry-run: ${{ inputs.dry-run-release }}
|
|
|
|
publish-libs:
|
|
if: ${{ always() }}
|
|
needs: [lint, unit-tests]
|
|
name: "Publish libs to NPM and GitHub registry"
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
id-token: write # Required for OIDC
|
|
contents: read
|
|
packages: write
|
|
steps:
|
|
- name: Check previous jobs status
|
|
if: ${{ inputs.publish-to-npm == 'false' || contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
|
|
run: exit 1
|
|
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
with:
|
|
fetch-depth: 2
|
|
|
|
- uses: ./.github/actions/setup
|
|
with:
|
|
npm_tag: ${{ inputs.npm-tag }}
|
|
|
|
- name: publish
|
|
uses: ./.github/actions/publish-libs
|
|
with:
|
|
branch_name: ${{ env.BRANCH_NAME }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
npm_tag: ${{ env.TAG_NPM }}
|
|
dry-run: ${{ inputs.dry-run-release }}
|
|
|
|
push-translation-keys-to-crowdin:
|
|
name: Push translations keys to Crowdin
|
|
if: ${{ github.ref == 'refs/heads/develop' }}
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
actions: read
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v7
|
|
|
|
- name: Push Source Files to Crowdin
|
|
uses: crowdin/github-action@e4a6c1338b4063c77d46a81875265f9e8bd76f95 # v3.0.0
|
|
with:
|
|
upload_sources: true
|
|
upload_sources_args: --delete-obsolete
|
|
env:
|
|
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TRANSLATIONS_TOKEN }}
|