Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for unannotated tags #7176

Merged
merged 2 commits into from
Nov 16, 2022
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
12 changes: 12 additions & 0 deletions .github/actions/save_git_info/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: save_git_info
description: Save GIT info for builds

runs:
using: 'composite'
steps:
- name: Save Git info
shell: bash
run: |
git describe --tags | python -c "import sys; print(next(sys.stdin).lstrip('v'))" > .TriblerVersion
git rev-parse HEAD > .TriblerCommit
echo "TRIBLER_VERSION=$(head -n 1 .TriblerVersion)" >> $GITHUB_ENV
6 changes: 1 addition & 5 deletions .github/workflows/build_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,7 @@ jobs:
with:
python-version: ${{ github.event.inputs.python-version || inputs.python-version }}

- name: Save Git info
run: |
git describe | python -c "import sys; print(next(sys.stdin).lstrip('v'))" > .TriblerVersion
git rev-parse HEAD > .TriblerCommit
echo "TRIBLER_VERSION=$(head -n 1 .TriblerVersion)" >> $GITHUB_ENV
- uses: ./.github/actions/save_git_info

- name: Prepare files
env:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/build_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,7 @@ jobs:
python-version: ${{ github.event.inputs.python-version || inputs.python-version }}
requirements: requirements-build.txt

- name: Save Git info
run: |
git describe | python -c "import sys; print(next(sys.stdin).lstrip('v'))" > .TriblerVersion
git rev-parse HEAD > .TriblerCommit
echo "TRIBLER_VERSION=$(head -n 1 .TriblerVersion)" >> $GITHUB_ENV
- uses: ./.github/actions/save_git_info

- name: Install Ubuntu dependencies
run: |
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,7 @@ jobs:
with:
python-version: ${{ github.event.inputs.python-version || inputs.python-version }}

- name: Save Git info
run: |
git describe | python -c "import sys; print(next(sys.stdin).lstrip('v'))" > .TriblerVersion
git rev-parse HEAD > .TriblerCommit
- uses: ./.github/actions/save_git_info

- name: Install windows dependencies
uses: ./.github/actions/windows_dependencies
Expand Down