Skip to content

Bump golang.org/x/text from 0.14.0 to 0.15.0 #210

Bump golang.org/x/text from 0.14.0 to 0.15.0

Bump golang.org/x/text from 0.14.0 to 0.15.0 #210

name: Create Release
on:
push:
branches:
- main
workflow_dispatch:
inputs:
version:
description: 'Version of the release to cut (e.g. 1.2.3)'
required: false
concurrency: release
jobs:
unit:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Checkout
uses: actions/checkout@v3
- name: Run Unit Tests
run: ./scripts/unit.sh
release:
name: Release
runs-on: ubuntu-latest
needs: unit
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.18.x
- name: Checkout
uses: actions/checkout@v3
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* || true
- name: Reset Draft Release
id: reset
uses: paketo-buildpacks/github-config/actions/release/reset-draft@main
with:
repo: ${{ github.repository }}
token: ${{ github.token }}
- name: Increment Tag
id: increment
uses: paketo-buildpacks/github-config/actions/tag/increment-tag@main
with:
current_version: ${{ steps.reset.outputs.current_version }}
- name: Set Release Tag
id: tag
run: |
tag="${{ github.event.inputs.version }}"
if [ -z "${tag}" ]; then
tag="${{ steps.increment.outputs.tag }}"
fi
echo "tag=${tag}" >> $GITHUB_OUTPUT
- name: Package Bootstrapper
run : ./scripts/package.sh --version ${{ steps.tag.outputs.tag }}
- name: Create Draft Release
uses: paketo-buildpacks/github-config/actions/release/create@main
with:
repo: ${{ github.repository }}
token: ${{ secrets.PAKETO_BOT_GITHUB_TOKEN }}
tag_name: v${{ steps.tag.outputs.tag }}
target_commitish: ${{ github.sha }}
name: v${{ steps.tag.outputs.tag }}
draft: true
assets: |
[
{
"path": "build/bootstrapper-darwin",
"name": "bootstrapper-darwin",
"content_type": "application/octet-stream"
},
{
"path": "build/bootstrapper-linux",
"name": "bootstrapper-linux",
"content_type": "application/octet-stream"
},
{
"path": "build/bootstrapper-windows.exe",
"name": "bootstrapper-windows.exe",
"content_type": "application/octet-stream"
}
]