Skip to content

Add buildArgs input to pass --build-args to convox build #44

Add buildArgs input to pass --build-args to convox build

Add buildArgs input to pass --build-args to convox build #44

Workflow file for this run

name: Release
on:
pull_request:
branches: [main]
types: [closed]
permissions:
contents: write
jobs:
compute-version:
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'release')
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Compute next version
id: version
run: |
CURRENT=$(cat VERSION)
BASE=${CURRENT#v}
MAJOR=$(echo "$BASE" | cut -d. -f1)
MINOR=$(echo "$BASE" | cut -d. -f2)
MINOR=$((MINOR + 1))
NEXT="v${MAJOR}.${MINOR}.0"
echo "version=$NEXT" >> "$GITHUB_OUTPUT"
echo "Bumping $CURRENT -> $NEXT"
release:
needs: compute-version
uses: ./.github/workflows/build-and-release.yml
with:
version: ${{ needs.compute-version.outputs.version }}
commit-message: "Release ${{ needs.compute-version.outputs.version }}"