Skip to content

Commit

Permalink
add action.yml for chapter3
Browse files Browse the repository at this point in the history
  • Loading branch information
anddrzejb committed Apr 14, 2024
1 parent 581d19f commit b4780d7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Add Evolutionary Architecture Nuget Source
description: Remove a default Evolutionary Architecture nuget source and add with credentials
inputs:
github-token:
description: GitHub token
required: true
owner:
description: Repository owner
required: true
path:
description: "Path to the directory"
required: true
runs:
using: "composite"
steps:
- name: Add Authorized Evolutionary Architecture Nuget Source
run: |
cd ${{ github.workspace }}/${{ inputs.path }}
NugetSourceName="evolutionaryArchitecture"
dotnet nuget remove source $NugetSourceName
dotnet nuget add source --username ${{ inputs.owner }} --password ${{ inputs.github-token }} --store-password-in-clear-text --name $NugetSourceName "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
dotnet nuget list source
shell: bash

0 comments on commit b4780d7

Please sign in to comment.