Skip to content

Commit c763e88

Browse files
authored
Merge pull request #3 from djgoku/2-not-able-to-see-user-verification-code-before-closing-the-browser
User is not able to see user verification code before closing the browser
2 parents 47efc91 + f0f8025 commit c763e88

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ env:
1111
jobs:
1212
release:
1313
runs-on: ubuntu-latest
14-
if: github.repository_owner == 'djgoku'
14+
if: |
15+
github.repository_owner == 'djgoku' &&
16+
(
17+
(!startsWith(github.ref, 'refs/tags/')) ||
18+
(startsWith(github.ref, 'refs/tags/') && github.actor == 'djgoku')
19+
)
1520
steps:
1621
- uses: actions/checkout@v4
1722
- name: Install devbox with empty devbox.json

lib/aws_sso_config_generator.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ defmodule AwsSsoConfigGenerator do
4343
|> Util.sso_oidc_register_client()
4444
|> Util.sso_oidc_start_device_authorization()
4545

46-
Util.browser_open(config.verification_uri_complete)
47-
4846
output = """
4947
aws-sso-config-generator #{Application.spec(:aws_sso_config_generator, :vsn)}
5048
@@ -59,6 +57,8 @@ defmodule AwsSsoConfigGenerator do
5957

6058
IO.puts(output)
6159

60+
Util.browser_open(config.verification_uri_complete)
61+
6262
maybe_access_token = Util.request_until(config, config.expires_in)
6363

6464
if is_nil(maybe_access_token) do

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ defmodule AwsSsoConfigGenerator.MixProject do
44
def project do
55
[
66
app: :aws_sso_config_generator,
7-
version: "0.2.0",
7+
version: "0.2.1",
88
elixir: "~> 1.18",
99
start_permanent: Mix.env() == :prod,
1010
deps: deps(),

0 commit comments

Comments
 (0)