Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Dec 15, 2023
1 parent 26a123c commit 3f1474b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/rivet-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
name: Prepare
runs-on: ubuntu-20.04
outputs:
ns_name_id: ${{ steps.derive_names.outputs.branch_name }}
ns_name_id: ${{ steps.derive_names.outputs.ns_name_id }}
version_name: ${{ steps.derive_names.outputs.version_name }}
steps:
Expand All @@ -24,6 +25,7 @@ jobs:
ns_name_id=$(echo $branch_name | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9-]\+/-/g' | cut -c 1-16)
short_hash=$(git rev-parse --short HEAD)
version_name="${short_hash} (${branch_name})"
echo "::set-output name=branch_name::$branch_name"
echo "::set-output name=ns_name_id::$ns_name_id"
echo "::set-output name=version_name::$version_name"
Expand Down Expand Up @@ -94,7 +96,7 @@ jobs:
- name: Create Namespace
run: |
# Ignore error if namespace already exists
rivet namespace create --id "${{ needs.prepare.outputs.ns_name_id }}" --name "$(git rev-parse --abbrev-ref HEAD)" || true
rivet namespace create --id "${{ needs.prepare.outputs.ns_name_id }}" --name "${{ needs.prepare.outputs.branch_name }}" || true
- name: Deploy Version
run: |
Expand Down

0 comments on commit 3f1474b

Please sign in to comment.