Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/validate-pr-title/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ runs:
using: composite
steps:
- name: "Check PR title follows '${{ inputs.validate-semVer == true && '+semver: <minor|major|patch> ' || '' }}<ticket id> <description>'"
uses: deepakputhraya/action-pr-title@v1.0.2
uses: deepakputhraya/action-pr-title@3864bebc79c5f829d25dd42d3c6579d040b0ef16 #v1.0.2
with:
regex: ^${{ inputs.validate-semVer == true && '(\+semver:\s(minor|major|patch)\s)?' || '' }}([A-Z][A-Z0-9]*-\d+(:)?\s\w)
if: ${{ contains(github.head_ref, 'release/') == false && contains(github.head_ref, 'merge/') == false }}
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ permissions:

jobs:
build:
name: 🏗️ Build TypeScript Project
name: Build TypeScript Project
permissions:
id-token: write
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:

jobs:
create-release-candidate:
name: 📦 Create Release Candidate
name: Create Release Candidate
permissions:
id-token: write
contents: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ permissions:

jobs:
set-release-latest:
name: 🏷️ Set Release as Latest
name: Set Release as Latest
permissions:
id-token: write
contents: write
Expand Down
71 changes: 0 additions & 71 deletions .github/workflows/template-label-and-validate-pr.yaml

This file was deleted.

38 changes: 19 additions & 19 deletions .github/workflows/template-pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,35 +69,35 @@ on:

jobs:
run-lint-on-dev:
name: 📦 Run lint on dev branch
name: Run lint on dev branch
runs-on: ubuntu-latest
permissions:
contents: read

if: ${{ inputs.new-version }}
steps:
- name: 📂 Checkout into dev
- name: 📥 Checkout into dev
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: dev

- name: 📦 Install project dependencies
- name: 🕸️ Install project dependencies
run: npm install

- name: 🏗️ Run build
run: npm run build

cleanup-existing-rc:
needs: run-lint-on-dev
name: 🧹 Cleanup existing rc branch and tag
name: Cleanup existing rc branch and tag
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

if: ${{ inputs.new-version }}
steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🔐 Azure login
Expand All @@ -115,7 +115,7 @@ jobs:
with:
key-name: o11odc-github-gitpersonal-token-prd

- name: 📂 Checkout with token
- name: 📥 Checkout with token
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ steps.get-github-token.outputs.az-keyvault-value }}
Expand All @@ -140,15 +140,15 @@ jobs:

create-rc:
needs: cleanup-existing-rc
name: 📦 Create rc branch
name: Create rc branch
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

if: ${{ inputs.new-version }}
steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🔐 Azure login
Expand All @@ -159,14 +159,14 @@ jobs:
tenant-id: ${{ secrets.OSUI_AZURE_TENANT_ID }}
subscription-id: ${{ secrets.OSUI_AZURE_SUBSCRIPTION_ID }}

- name: Get GitHub Token
- name: 🔑 Get GitHub Token
id: get-github-token
#uses: OutSystems/rd.github-reusable-workflows/.github/actions/az-keyvault-get@9d497d1c5bc6e355aa8f4663539e6b75c212f6b4 #v2.0.7
uses: ./.github/actions/az-keyvault-get
with:
key-name: o11odc-github-gitpersonal-token-prd

- name: 📂 Checkout into dev
- name: 📥 Checkout into dev
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: dev
Expand All @@ -179,15 +179,15 @@ jobs:

set-tag:
needs: create-rc
name: 🔖 Set tag
name: Set tag
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

if: ${{ inputs.new-version }}
steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🔐 Azure login
Expand All @@ -205,7 +205,7 @@ jobs:
with:
key-name: o11odc-github-gitpersonal-token-prd

- name: 📂 Checkout into rc${{ inputs.new-version }}
- name: 📥 Checkout into rc${{ inputs.new-version }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: rc${{ inputs.new-version }}
Expand All @@ -219,15 +219,15 @@ jobs:

set-pre-release:
needs: set-tag
name: 📦 Set pre-release
name: Set pre-release
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

if: ${{ inputs.new-version }}
steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🔐 Azure login
Expand Down Expand Up @@ -266,7 +266,7 @@ jobs:

update-dev-version:
needs: create-rc
name: 📦 Update dev version
name: Update dev version
runs-on: ubuntu-latest
permissions:
id-token: write
Expand All @@ -278,7 +278,7 @@ jobs:
# permissions to commit directly to the dev branch.
if: ${{ inputs.new-version && inputs.new-dev-release }}
steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🔐 Azure login
Expand All @@ -296,7 +296,7 @@ jobs:
with:
key-name: o11odc-github-gitpersonal-token-prd

- name: 📂 Checkout into dev
- name: 📥 Checkout into dev
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: dev
Expand All @@ -319,7 +319,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ steps.get-github-token.outputs.az-keyvault-value }}

- name: 📦 Install project dependencies
- name: 🕸️ Install project dependencies
run: npm install

- name: 🔖 Update dev version into v${{ inputs.new-dev-release }}
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/template-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ on:

jobs:
run-lint-on-rc:
name: 📦 Run lint on rc branch
name: Run lint on rc branch
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -65,14 +65,14 @@ jobs:
with:
ref: rc${{ inputs.new-version }}

- name: Install project dependencies
- name: 🕸️ Install project dependencies
run: npm install

- name: Run build
- name: 🏗️ Run build
run: npm run build

merge-rc-into-main:
name: 🔄 Merge rc branch into main
name: Merge rc branch into main
needs: run-lint-on-rc
runs-on: ubuntu-latest
permissions:
Expand All @@ -81,7 +81,7 @@ jobs:

if: ${{ inputs.new-version }}
steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🔐 Azure login
Expand All @@ -108,15 +108,15 @@ jobs:
commit_message_template: 'Merged rc${{ inputs.new-version }} into main. [skip ci]'

set-pre-release-as-lts:
name: 🔖 Set pre-release as LTS
name: Set pre-release as LTS
needs: merge-rc-into-main
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🔐 Azure login
Expand All @@ -141,17 +141,18 @@ jobs:
tag_name: v${{ inputs.new-version }}
prerelease: false
token: ${{ steps.get-github-token.outputs.az-keyvault-value }}
make_latest: true

delete-rc-branch:
name: 🗑️ Delete rc branch
name: Delete rc branch
needs: merge-rc-into-main
runs-on: ubuntu-latest
permissions:
contents: write

if: ${{ inputs.delete-rc-branch == true }}
steps:
- name: 📂 Checkout branch dev
- name: 📥 Checkout branch dev
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: dev
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/template-ts-build-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
id-token: write
contents: read
steps:
- name: 📂 Checkout main branch
- name: 📥 Checkout main branch
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ inputs.github-ref }}
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
shell: bash
run: npx @outsystems/assistant login --token ${{ steps.get-devOps-token.outputs.az-keyvault-value }}

- name: 📦 Install dependencies
- name: 🕸️ Install dependencies
run: npm install

- name: 🏗️ Run build
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/template-validate-pr-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ permissions:

jobs:
check-label:
name: 🔎 Check PR labels
name: Check PR labels
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: 🔎 Check PR labels
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/template-validate-pr-title.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ permissions:

jobs:
check-title:
name: 🔎 Check PR title
name: Check PR title
runs-on: ubuntu-latest
steps:
- name: 📂 Checkout repository
- name: 📥 Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: "🔎 Check PR title follows '${{ inputs.validate-semVer == true && '+semver: <minor|major|patch> ' || '' }}<ticket id> <description>'"
Expand Down
Loading