Skip to content

tags

tags #22

Workflow file for this run

---
name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-tags: true
- name: Configure git
run: |
git config --global url."https://x-oauth-basic:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository_owner }}".insteadOf https://github.com/${{ github.repository_owner }}
- id: get_python_version
name: Get Python version
run: |
set -euo pipefail
python_version=$(cat ${GITHUB_WORKSPACE}/.python-version)
echo "Python version: ${python_version}"
echo "python_version=$python_version" >> "$GITHUB_OUTPUT"
- uses: actions/setup-python@v4
with:
python-version: ${{ steps.get_python_version.outputs.python_version }}
- name: Setup pipenv
run: python -m pip install --upgrade pipenv wheel
- id: cache-pipenv
uses: actions/cache@v3
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}-ci
- name: Install
if: steps.cache-pipenv.outputs.cache-hit != 'true'
run: make install_ci
env:
PIPENV_DEV: true
- name: Test
run: make test
- name: Download
uses: robinraju/[email protected]
with:
repository: 'gofrontier-com/vertag'
latest: true
fileName: 'vertag_Linux_x86_64.tar.gz'
token: ${{ secrets.GITHUB_TOKEN }}
extract: true
- name: Vertag
run: |
ls -la
git tag
./vertag apply --modules-dir .