Skip to content

new-pre-release

new-pre-release #35

Workflow file for this run

name: new-pre-release
on:
workflow_dispatch:
inputs:
new-tag:
description: 'New tag value.'
type: string
required: true
jobs:
create-rc:
runs-on: ubuntu-latest
if: ${{ github.event.inputs.new-tag }}
steps:
- name: Checkout branch dev
uses: actions/checkout@v3
with:
ref: dev
- uses: actions/setup-node@v3
- name: Create branch rc${{ github.event.inputs.new-tag }}
shell: bash
run: |
echo cenas_${{ github.head_ref }}
git checkout -b rc${{ github.event.inputs.new-tag }}
git push -u origin rc${{ github.event.inputs.new-tag }}
set-tag:
needs: create-rc
runs-on: ubuntu-latest
if: ${{ github.event.inputs.new-tag }}
steps:
# TODO: Remove the setUp git below since it will not be needed once token will be set
- name: Configure Git with the GitHub Token
run: |
git config --global user.email "sa_git_uicomponents@outsystems.com"
git config --global user.name "UiComponentsBot"
git config --global credential.helper store
- name: Checkout branch dev
uses: actions/checkout@v3
with:
ref: rc${{ github.event.inputs.new-tag }}
fetch-depth: 0
# token: ${{ secrets.PAT }}
- name: Set tag
run: |
git tag v${{ github.event.inputs.new-tag }} HEAD -m "Version ${{ github.event.inputs.new-tag }} released"
git push origin --tags