Skip to content

Commit

Permalink
Create action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilbaczek authored Apr 10, 2024
1 parent e346ff1 commit c26c6a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Add Evolutionary Architecture Nuget Source'
description: 'Remove a specific NuGet source and add GitHub NuGet source'
inputs:
github-token:
description: 'GitHub token'
required: true
owner:
description: 'Repository owner'
required: true
runs:
using: 'composite'
steps:
- run: dotnet nuget remove source evolutionaryArchitecture
shell: bash
- run: |
dotnet nuget add source --username ${{ inputs.owner }} --password ${{ inputs.github-token }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${{ inputs.owner }}/index.json"
dotnet nuget list source
shell: bash

0 comments on commit c26c6a1

Please sign in to comment.