Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to download artifact in different worfkflow #326

Open
thatsk opened this issue Jan 29, 2025 · 2 comments
Open

not able to download artifact in different worfkflow #326

thatsk opened this issue Jan 29, 2025 · 2 comments

Comments

@thatsk
Copy link

thatsk commented Jan 29, 2025

Java Workflow

cat test.yml

name: Java

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
jobs:
  build:
    runs-on: ubuntu-latest
    permissions: write-all
    steps:
    - name: checking vars
      run: | 
        ls -la 
        echo "This is " > buildinfo.txt
    - name: Upload buildinfo file as artifact
      uses: actions/upload-artifact@v4
      with:
        name: versioninfoartifact
        path: buildinfo.txt
        retention-days: 7
cat test1.yml 

name: Deploy

on:
  workflow_run:
    workflows: Java 
    types: [completed]

jobs:
  build:
    runs-on: ubuntu-latest
    permissions: write-all
    steps:
      - name: Download artifact
        id: download-artifact
        uses: dawidd6/action-download-artifact@v6
        with:
          workflow: "Java"
          name: versioninfoartifact

Originally posted by @thatsk in #302

@thatsk
Copy link
Author

thatsk commented Jan 29, 2025

@dawidd6
Copy link
Owner

dawidd6 commented Jan 29, 2025

Try workflow: test.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants