use more env context in CI

This commit is contained in:
Armin Schrenk
2025-10-08 10:36:29 +02:00
parent 7f9c9a7df6
commit 6533ba7367
5 changed files with 20 additions and 15 deletions
+5 -3
View File
@@ -30,14 +30,16 @@ jobs:
runs-on: ubuntu-latest
outputs:
fileName: ${{ steps.extractName.outputs.fileName}}
env:
INPUT_URL: ${{ inputs.url }}
steps:
- name: Extract file name
id: extractName
run: |
url="${{ inputs.url }}"
url="${INPUT_URL}"
echo "fileName=${url##*/}" >> $GITHUB_OUTPUT
- name: Download file
run: curl --remote-name ${{ inputs.url }} -L -o ${{steps.extractName.outputs.fileName}}
run: curl --remote-name ${INPUT_URL} -L -o ${{steps.extractName.outputs.fileName}}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
@@ -75,7 +77,7 @@ jobs:
with:
name: ${{ needs.download-file.outputs.fileName }}
path: upload
- name: Upload to Avast
- name: Upload to Avast
uses: wlixcc/SFTP-Deploy-Action@v1.2.6
with:
server: whitelisting.avast.com