Skip to content

Commit

Permalink
fix: changed step for getting artifact
Browse files Browse the repository at this point in the history
Issue with downloading artifact from another workflow. More info: actions/toolkit#517
  • Loading branch information
aochmann committed Mar 1, 2021
1 parent 58f0cc2 commit 2562e2d
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name: Build
on:
pull_request:
branches: [ main, master, develop ]
release:
workflow_run:
workflows: [ "Changelog generator" ]
types:
- published
- completed
workflow_dispatch:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:

# Project Setup
PROJECT_NAME: 'Cogworks.Essentials'
TEST: ${{ github.event_name }}

steps:
- name: Checkout master
Expand All @@ -35,8 +34,9 @@ jobs:
echo "VERSION=$tag_check" >> $GITHUB_ENV
- name: Download a single artifact
uses: actions/download-artifact@v2
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: build_${{ env.PROJECT_NAME }}.${{ env.VERSION }}
path: ${{ env.GITHUB_PACKAGES_OUTPUT }}

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release-myget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ jobs:
echo "VERSION=$tag_check" >> $GITHUB_ENV
- name: Download a single artifact
uses: actions/download-artifact@v2
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: build_${{ env.PROJECT_NAME }}.${{ env.VERSION }}
path: ${{ env.NUGET_OUTPUT }}
path: ${{ env.GITHUB_PACKAGES_OUTPUT }}

- name: Configure NuGet
uses: nuget/setup-nuget@v1
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release-umbraco.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ jobs:
nuget-version: ${{ env.NUGET_VERSION }}

- name: Download a single artifact
uses: actions/download-artifact@v2
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
name: build_${{ env.PROJECT_NAME }}.${{ env.VERSION }}
path: ${{ env.NUGET_OUTPUT }}
path: ${{ env.GITHUB_PACKAGES_OUTPUT }}

- name: Extract artifact
- name: Extract NuGet file
shell: powershell
run: |
Install-Package -Name ${{ env.PROJECT_NAME }} -Source ${{ env.NUGET_OUTPUT }} -Destination ${{ env.NUGET_EXTRACTED }}
Expand Down

0 comments on commit 2562e2d

Please sign in to comment.