You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
ashuvssut
changed the title
Provide Variables values from workflow to the action
Provide Variables values via workflow file and @action/core package to src/action.js
Jul 21, 2021
ashuvssut
changed the title
Provide Variables values via workflow file and @action/core package to src/action.js
Provide Variables values via workflow file and @action/core package to src/action.js
Jul 21, 2021
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:
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
anyaction.yml
to fetch the values to feed in these variablesform the workflow file, and from the
@action/core
package's functions@action/core
forOWNER
andREPO
variablesBRANCH
andPDF_PATH
variablesIf you want to contribute, I will be there to help you out if you get stuck :) Happy Learning!
The text was updated successfully, but these errors were encountered: