Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Nov 11, 2024
1 parent 2f56e49 commit f2fd41d
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
name: Build Apps, Deploy Web and Create Release

on:
push:
branches:
- inherit # todo remove, can't workflow_dispatch from branch

workflow_call:
inputs:
release_branch_prefix:
description: "Release branch prefix (e.g. `test-release`)"
default: "test-release"
tag_prefix:
description: "Tag prefix (e.g. `test-`)"
default: "test-"

workflow_dispatch:
inputs:
release_branch_prefix:
Expand Down Expand Up @@ -30,7 +43,7 @@ jobs:
- name: Verify provided version not already released
run: |
git fetch --tags
TAG_NAME="${{ github.event.inputs.tag_prefix }}${{ steps.get_current_version.outputs.version }}"
TAG_NAME="${{ inputs.tag_prefix }}${{ steps.get_current_version.outputs.version }}"
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
echo "Error: Tag $TAG_NAME already exists"
exit 1
Expand Down Expand Up @@ -61,11 +74,11 @@ jobs:

- name: Commit and push release
run: |
git checkout -b ${{ github.event.inputs.release_branch_prefix }}/${{ needs.validate_version.outputs.version }}
git checkout -b ${{ inputs.release_branch_prefix }}/${{ needs.validate_version.outputs.version }}
git config --global user.email "[email protected]"
git config --global user.name "Voyager CI"
git add .
git commit -m "Release ${{ needs.validate_version.outputs.version }} (${{ github.run_number }})"
git tag ${{ github.event.inputs.tag_prefix }}${{{ needs.validate_version.outputs.version }}
git tag ${{ inputs.tag_prefix }}${{{ needs.validate_version.outputs.version }}
git push origin HEAD
git push --tags

0 comments on commit f2fd41d

Please sign in to comment.