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
I have read the latest README and followed the instructions.
I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.
Describe your proposal
It would be great to export the working directory as action output to be used in follow-up actions. Right now, I use the following to update a part of the specification and publish it using actions/deploy-pages:
name: Deploy - TechSpecon:
workflow_call:
inputs:
artifact-name:
type: stringrequired: truedescription: "Name of the artifact that contains the files to deploy."tech-spec-folder:
type: stringrequired: truedescription: "The name of the subfolder to use (defined by the version)."secrets:
ACTION_PAT:
required: true# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pagespermissions:
contents: readpages: writeid-token: write# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.concurrency:
group: techspec_${{ github.repository }}cancel-in-progress: falsejobs:
deploy:
environment:
name: github-pagesurl: ${{ steps.deployment.outputs.page_url }}runs-on: ubuntu-lateststeps:
- name: Download packageuses: actions/download-artifact@v4with:
name: ${{ inputs.artifact-name }}path: artifact
- name: Deploy to GitHub Pagesuses: peaceiris/actions-gh-pages@v4with:
personal_token: ${{ secrets.ACTION_PAT }}publish_dir: artifactdestination_dir: ${{ inputs.tech-spec-folder }}
- name: Setup Pagesuses: actions/configure-pages@v5with:
enablement: truetoken: ${{ secrets.ACTION_PAT }}
- name: Checkout gh-pagesuses: actions/checkout@v4with:
token: ${{ secrets.ACTION_PAT }}ref: gh-pagespath: _site
- name: Upload artifactuses: actions/upload-pages-artifact@v3
- name: Deploy to GitHub Pagesid: deploymentuses: actions/deploy-pages@v4with:
token: ${{ secrets.ACTION_PAT }}
Describe the solution you'd like
If peaceiris/actions-gh-pages would export the working directory, it would not be necessry to checkout the gh-pages branch again, since it's already on the runner. Instead, I could just pass the path to actions/upload-pages-artifact directly.
Describe alternatives you've considered
No response
Additional context
It seems, that this action is assuming that the legacy model of using branches is configured for triggering the publish. But since GitHub marked it as legacy, we would prefer to use the GitHub Actions workflow proposed by them instead in combination with having
The text was updated successfully, but these errors were encountered:
Checklist
Describe your proposal
It would be great to export the working directory as action output to be used in follow-up actions. Right now, I use the following to update a part of the specification and publish it using
actions/deploy-pages
:Describe the solution you'd like
If
peaceiris/actions-gh-pages
would export the working directory, it would not be necessry to checkout thegh-pages
branch again, since it's already on the runner. Instead, I could just pass the path toactions/upload-pages-artifact
directly.Describe alternatives you've considered
No response
Additional context
It seems, that this action is assuming that the legacy model of using branches is configured for triggering the publish. But since GitHub marked it as legacy, we would prefer to use the GitHub Actions workflow proposed by them instead in combination with having
The text was updated successfully, but these errors were encountered: