Prepare Release for Tagging and Release #10
Workflow file for this run
This file contains 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: Release on Demand | ||
#name: Prepare Release for Tagging and Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Semantic version for the release, ex: "v1.2.3"' | ||
required: true | ||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Update version in cli.go | ||
run: | | ||
VERSION=${{ github.event.inputs.version }} | ||
sed -i "s/\tzdnsCLIVersion = \".*\"/\tzdnsCLIVersion = \"${VERSION}\"/g" src/cli/cli.go | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: "update-code-for-/${{ github.event.inputs.version }}" | ||
title: "Updates version in code to ${{ github.event.inputs.version }}" | ||
body: "This PR updates the version to ${{VERSION}}. Be sure to tag the release once this PR is merged." | ||
Check failure on line 28 in .github/workflows/version_tagging.yml GitHub Actions / Release on DemandInvalid workflow file
|
||
base: main | ||
reviewers: ZDNS Maintainers | ||
commit-message: "Update version to ${VERSION} in src/cli/cli.go" |