Skip to content

Bullrich/extract-text-from-artifact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Extract text from artifact

Action to simplify the example from the example in GitHub with workflow_run event.

Needs to be called by the workflow_run event.

Installation

name: Use the data

on:
  workflow_run:
    workflows: [PR-Triggered-Event]
    types:
      - completed

jobs:
  download:
    runs-on: ubuntu-latest
    steps:
      - name: Extract content of artifact
        id: number
        uses: Bullrich/extract-text-from-artifact@main
        with:
          artifact-name: pr_number
      - run: echo "The PR that triggered the workflow is \#$NUMBER"
        env:
          NUMBER: ${{ steps.number.outputs.content }}

About

Extract content from a text file coming from an artifact

Resources

License

Stars

Watchers

Forks

Packages

No packages published