try and save output as global var next next step
diff --git a/.github/workflows/nightlies.yml b/.github/workflows/nightlies.yml
index 94b50cf..b3a7d56 100644
--- a/.github/workflows/nightlies.yml
+++ b/.github/workflows/nightlies.yml
@@ -4,14 +4,16 @@
runs-on: ubuntu-18.04
env:
INFILE: ghactions-publishing.md
+ OUTFILE: ghactions-publishing.html
steps:
- uses: actions/checkout@master
- uses: docker://pandoc/core:2.9
with:
args: >-
--standalone
- --output=ghactions-publishing.html
+ --output=${{ env.OUTFILE }}
${{ env.INFILE }}
+ - run: echo OUTFILE=${{ env.OUTFILE }} >> $GITHUB_ENV
curl:
runs-on: ubuntu-latest
needs: md_to_html
@@ -20,4 +22,4 @@
- name: curl
uses: wei/curl@v1
with:
- args: --user ${{ secrets.NIGHTLIES_USER }}:${{ secrets.NIGHTLIES_TOKEN }} --upload-file ghactions-publishing.html https://nightlies.apache.org/ghactions-publishing.html
+ args: --user ${{ secrets.NIGHTLIES_USER }}:${{ secrets.NIGHTLIES_TOKEN }} --upload-file ${{ env.OUTFILE }} https://nightlies.apache.org/ghactions-publishing.html