Skip to content

Commit

Permalink
ci: update runner os, ensure git can output something
Browse files Browse the repository at this point in the history
Signed-off-by: Shengqi Chen <[email protected]>
  • Loading branch information
Harry-Chen committed Nov 12, 2024
1 parent 415d2d7 commit bd04810
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ env:
jobs:

build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ubuntu-24.04
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -49,7 +49,7 @@ jobs:
thuthesis-example.pdf
- name: Build release zip
run: |
version=$(git describe --tags)
version=$(git describe --tags --always)
echo "Current git revision: $version"
python3 utils/create_release.py --version $version
- name: Build CTAN release zip with l3build
Expand All @@ -63,10 +63,10 @@ jobs:
dist/thuthesis-*.zip
test:
if: "!contains(github.event.head_commit.message, 'ci skip')"
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
strategy:
matrix:
os: [ubuntu-latest, macos-14, windows-latest]
os: [ubuntu-24.04, macos-14, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion utils/create_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def create_release_zip(version: str):
args = parser.parse_args()
if not args.version:
version = (
subprocess.check_output(["git", "describe", "--tags"])
subprocess.check_output(["git", "describe", "--tags", "--always"])
.strip()
.decode("utf-8")
)
Expand Down

0 comments on commit bd04810

Please sign in to comment.