Skip to content

update

update #3

Workflow file for this run

name: Create UI Tag
on:
push:
tags:
- 'v*' # This will trigger on any tag starting with 'v'
jobs:
mirror-tag:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history for all tags and branches
- name: Get the version
id: get_version
env:
GITHUB_REF: ${{ github.ref }}
run: |
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Create tag in target repository
env:
TARGET_REPO: rafaelbreno/rancher-ui
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git clone https://${GH_TOKEN}@github.com/${TARGET_REPO}.git target_repo
cd target_repo
git tag $VERSION
git push origin $VERSION
git push https://${GH_TOKEN}@github.com/${TARGET_REPO}.git $VERSION
run: |

Check failure on line 36 in .github/workflows/create-ui-tag.yaml

View workflow run for this annotation

GitHub Actions / Create UI Tag

Invalid workflow file

The workflow is not valid. .github/workflows/create-ui-tag.yaml (Line: 36, Col: 7): 'run' is already defined