ashuvssut/generatePdf-GHA

Provide Variables values via workflow file and @action/core package to src/action.js

Opened this issue · 0 comments

For now, this Action can't be used by other people. To use this action to generate their own PDF, they need to fork this repo, edit four variables present in src/action.js.

Those four variables are:

  • OWNER
  • REPO
  • BRANCH
  • PDF_PATH

after doing this, they have created their own action that only works for their repo.


SOLUTION TO AVOID THIS OVERHEAD and make this Action reusable by everyone:
we can modify action.js any action.yml to fetch the values to feed in these variables
form the workflow file, and from the @action/core package's functions

  • use @action/core for OWNER and REPO variables
  • we can use workflow env variables for BRANCH and PDF_PATH variables

If you want to contribute, I will be there to help you out if you get stuck :) Happy Learning!