Skip to content

Commit

Permalink
Slugify org name
Browse files Browse the repository at this point in the history
  • Loading branch information
zacksiri committed Apr 30, 2024
1 parent 90f5c4c commit 792bf97
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ runs:
uses: actions/cache@v4
with:
path: ~/.mix
key: ${{ runner.arch }}-alpine-${{ inputs.alpine }}-pakman-8.2.6
key: ${{ runner.arch }}-alpine-${{ inputs.alpine }}-pakman-develop

- name: Install Pakman
if: steps.cache-pakman.outputs.cache-hit != 'true'
run: |
mix local.rebar --force
mix local.hex --force
mix escript.install hex pakman 8.2.6 --force
mix escript.install github upmaru/pakman branch develop --force
shell: alpine.sh {0}
env:
MIX_ENV: prod
6 changes: 5 additions & 1 deletion lib/pakman/environment.ex
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ defmodule Pakman.Environment do
|> System.get_env()
|> String.split("/")

%{organization: organization, name: name, slug: Slug.slugify(name)}
%{
organization: Slug.slugify(organization),
name: name,
slug: Slug.slugify(name)
}
end
end

0 comments on commit 792bf97

Please # to comment.