Set $BASE_URL
or similar env var for subsequent steps
#105
Labels
wontfix
This will not be worked on
$BASE_URL
or similar env var for subsequent steps
#105
It's my understanding that this action is sort of an optional configuration step in the chain of:
Where actions/configure-pages is supposed to tweak some configs a bit like for Next.js to make it play nice with a
https://example.org/sub-project/...
base URL.Since that seems to be the goal, I'd like to propose a feature: auto-setting some kind of
$PAGES_BASE_URL
or$BASE_URL
(idk if there's a common conventional name or standard) or some other environment variable like this:Why is this a good idea? 1) It's an environment variable, not an output. That means you don't need to do this messiness each time you want to use it:
2) It makes it much easier for non-Next.js/Jekyll/whatever supported projects in the magic js file to just pick up on a
$BASE_URL
env var. Yes, you can do this now but it's a bit clunky with adding the outputs to an env var manually.This proposed
$BASE_URL
idea is more implicit than the current explicit${{ steps.my-id.outputs.base_url }}
is right now. In my opinion that's OK similar to how there's already a slew of$GITHUB_*
env vars but my opinion isn't the right answer.If this is out-of-scope, feel free to close this. This is just a QoL feature that would make it easier to do configs without mucking with outputs in
my-pages-workflow.yml
. 🤷♀️The text was updated successfully, but these errors were encountered: