Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 5 additions & 14 deletions .github/workflows/release.lib.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,21 +77,12 @@ jobs:
git tag -a "${{ env.version }}" -m "Release ${{ env.version }}"
git push origin "${{ env.version }}"

- name: Create Git tag for api submodule
if: ${{ env.SKIP != 'true' }}
run: |
AUTHOR_NAME=$(git log -1 --pretty=format:'%an')
AUTHOR_EMAIL=$(git log -1 --pretty=format:'%ae')
echo "Tagging as $AUTHOR_NAME <$AUTHOR_EMAIL>"

echo "AUTHOR_NAME=$AUTHOR_NAME" >> $GITHUB_ENV
echo "AUTHOR_EMAIL=$AUTHOR_EMAIL" >> $GITHUB_ENV

git config user.name "$AUTHOR_NAME"
git config user.email "$AUTHOR_EMAIL"
NESTED_GO_MODULES="$(task release:list-nested-modules)"

git tag -a "api/${{ env.version }}" -m "Release ${{ env.version }}"
git push origin "api/${{ env.version }}"
for MODULE in $NESTED_GO_MODULES; do
git tag -a "${{MODULE}}/${{ env.version }}" -m "Release ${{ env.version }}"
git push origin "${{MODULE}}/${{ env.version }}"
done

- name: Build Changelog
id: github_release
Expand Down
5 changes: 5 additions & 0 deletions tasks_rls.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,8 @@ tasks:
cmds:
- '{{.TASKFILE_DIR2}}/sed.sh -E "s@ {{.MODULE_NAME}}/{{.MODULE}} .*@ {{.MODULE_NAME}}/{{.MODULE}} {{.VERSION}}@" "{{.ROOT_DIR2}}/go.mod"'
internal: true

list-nested-modules:
desc: "List all nested modules in the project."
cmds:
- cmd: 'echo "{{.NESTED_MODULES}}"'