Giter Club home page Giter Club logo

Comments (8)

dawidd6 avatar dawidd6 commented on July 24, 2024

Seeing your whole workflow files would certainly help. For now I can't tell what's wrong.

from action-download-artifact.

tb102122 avatar tb102122 commented on July 24, 2024

The workflow is the following:

name: review
on:
  pull_request:
    branches:
      - development
      - master
      - prod

jobs:
  job_prepare: ...
  job_layers:
    needs: job_prepare
    runs-on: ubuntu-latest
    strategy:
      matrix: ${{fromJson(needs.job_prepare.outputs.layer_matrix)}}
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: matrix name
        run: |
          echo $GITHUB_WORKSPACE
          echo ${{ matrix.path }}
        - name: Layer via Artifacts
        uses: dawidd6/action-download-artifact@v2
        with:
          workflow: review.yml
          branch: development
          name: ${{ matrix.name }}
      - name: Upload layer zip
        uses: actions/upload-artifact@v2
        with:
          name: ${{ matrix.name }}
          path: ${{ matrix.name }}.zip
  job_lambda: ...
  terraform-plan: ...

I removed some parts for simplicity now.

from action-download-artifact.

dawidd6 avatar dawidd6 commented on July 24, 2024

If you are trying to download artifact before it's uploaded, then it won't work. Otherwise I don't know what the issue is.

from action-download-artifact.

tb102122 avatar tb102122 commented on July 24, 2024

from action-download-artifact.

dawidd6 avatar dawidd6 commented on July 24, 2024

Could you link to repository?

from action-download-artifact.

tb102122 avatar tb102122 commented on July 24, 2024

No the workflow run in the same repo.
Lets say I have a PR5 now and I would like to get the last successful PR e.g. 4 and download the artifact from PR4.

I need that approach in order to have the same zip files again otherwise my terraform plan shows differences and needs to run a new apply for lambdas.

from action-download-artifact.

dawidd6 avatar dawidd6 commented on July 24, 2024

Try unsetting branch input.

from action-download-artifact.

tb102122 avatar tb102122 commented on July 24, 2024

thanks for the tip that worked succesful!

from action-download-artifact.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.