Skip to content

Commit

Permalink
Update test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joselrio committed Jan 12, 2024
1 parent a619586 commit ac73743
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,34 +41,33 @@ jobs:

- uses: actions/setup-node@v3

- name: Create branch rc${{ github.event.inputs.new-version }}
- name: Create branch rc${{ needs.normalize-version-value.outputs.version }}
shell: bash
run: |
echo cenas_${{ needs.normalize-version-value.outputs.version }}
git checkout -b rc${{ github.event.inputs.new-version }}
git push -u origin rc${{ github.event.inputs.new-version }}
git checkout -b rc${{ needs.normalize-version-value.outputs.version }}
git push -u origin rc${{ needs.normalize-version-value.outputs.version }}
set-tag:
needs: create-rc
needs: [create-rc, normalize-version-value]
runs-on: ubuntu-latest

if: ${{ github.event.inputs.new-version }}
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: 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-version }}
ref: rc${{ needs.normalize-version-value.outputs.version }}
fetch-depth: 0
# token: ${{ secrets.PAT }}
token: ${{ secrets.PAT }}

- name: Set tag
run: |
git tag v${{ github.event.inputs.new-version }} HEAD -m "Version ${{ github.event.inputs.new-version }} released"
git tag v${{ needs.normalize-version-value.outputs.version }} HEAD -m "Version ${{ needs.normalize-version-value.outputs.version }} released"
git push origin --tags

0 comments on commit ac73743

Please sign in to comment.