Look for podman if docker isn't present #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create Tag | |
| on: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| group: "${{ github.ref }}.tag" | |
| cancel-in-progress: true | |
| jobs: | |
| create-tag: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 60 | |
| permissions: write-all | |
| env: | |
| GIT_STRATEGY: clone | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 20 | |
| lfs: true | |
| - name: Get new version | |
| run: | | |
| git fetch --tags | |
| latest_tag=$(git describe --tags $(git rev-list --tags --max-count=1)) | |
| IFS='.' read -r -a parts <<< "${latest_tag}" | |
| ((parts[1]++)) | |
| echo "VERSION=${parts[0]}.${parts[1]}" >> $GITHUB_ENV | |
| - name: Create release | |
| uses: actions/create-release@v1 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| with: | |
| tag_name: ${{ env.VERSION }} |