diff --git a/.github/workflows/ci.main-version.yaml b/.github/workflows/ci.main-version.yaml deleted file mode 100644 index d058d87..0000000 --- a/.github/workflows/ci.main-version.yaml +++ /dev/null @@ -1,8 +0,0 @@ -name: Update Main Version -on: - push: - tags: - - "v*" -jobs: - tag: - uses: parcelLab/ci/.github/workflows/main-version.yaml@main diff --git a/.github/workflows/main-version.yaml b/.github/workflows/main-version.yaml deleted file mode 100644 index 15b2969..0000000 --- a/.github/workflows/main-version.yaml +++ /dev/null @@ -1,36 +0,0 @@ -name: Reusable Update Main Version -on: - workflow_call: - inputs: - runner: - required: false - description: Runner type - default: ubuntu-latest - type: string -jobs: - tag: - runs-on: ${{ inputs.runner }} - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Load version - id: vars - run: | - TAG_NAME="${{ github.ref }}" - CLEAN_TAG=${TAG_NAME##*/} - SHORT_VERSION=${CLEAN_TAG%%.*} - # shellcheck disable=SC2086 - echo "shortVersion=$SHORT_VERSION" >> $GITHUB_OUTPUT - - name: Git config - run: | - git config user.name github-actions - git config user.email github-actions@github.com - - name: Tag new target - run: | - # shellcheck disable=SC2086,SC2296 - git tag -f ${{ steps.vars.outputs.shortVersion }} ${{ github.ref }} - - name: Push new tag - run: | - # shellcheck disable=SC2086 - git push origin ${{ steps.vars.outputs.shortVersion }} --force