File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ name: Split Monorepo
99# The default GITHUB_TOKEN cannot push to other repositories.
1010
1111on :
12+ workflow_dispatch :
1213 push :
1314 tags :
1415 - ' *'
4647 with :
4748 fetch-depth : 0
4849
50+ - name : Determine tag
51+ id : tag
52+ run : |
53+ if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
54+ TAG=$(git describe --tags --abbrev=0)
55+ else
56+ TAG="${{ github.ref_name }}"
57+ fi
58+ echo "name=$TAG" >> $GITHUB_OUTPUT
59+ echo "Using tag: $TAG"
60+
4961 - name : Split ${{ matrix.package.split_repository }}
5062 uses : symplify/monorepo-split-github-action@v2.3.0
5163 with :
5466 repository_name : ${{ matrix.package.split_repository }}
5567 user_name : ' github-actions[bot]'
5668 user_email : ' github-actions[bot]@users.noreply.github.com'
57- tag : ${{ github.ref_name }}
69+ tag : ${{ steps.tag.outputs.name }}
5870 branch : ' master'
5971 env :
6072 GITHUB_TOKEN : ${{ secrets.SPLIT_TOKEN }}
You can’t perform that action at this time.
0 commit comments