mirror of
https://github.com/timheuer/base64-to-file.git
synced 2026-10-10 09:24:15 +03:00
49 lines
1.2 KiB
YAML
49 lines
1.2 KiB
YAML
name: "Action Test"
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
# test action works running from the graph
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ ubuntu-latest, windows-latest ]
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Write file (1)
|
|
id: write_file
|
|
uses: ./
|
|
with:
|
|
fileName: "temp/dir/not/exists/myTemporaryFile.txt"
|
|
encodedString: ${{ secrets.SOME_ENCODED_STRING }} # SGVsbG8sIFdvcmxkIQ==
|
|
|
|
- name: Write file (2)
|
|
id: write_file2
|
|
uses: ./
|
|
with:
|
|
fileName: "myTemporaryFile.json"
|
|
encodedString: ${{ secrets.ENCODED_JSON }}
|
|
|
|
- name: Echo file
|
|
run: |
|
|
echo ${{ steps.write_file.outputs.filePath }}
|
|
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: "final-file-${{ matrix.os }}.txt"
|
|
path: ${{ steps.write_file.outputs.filePath }}
|
|
|
|
- name: Upload Artifact 2
|
|
uses: actions/upload-artifact@v7
|
|
with:
|
|
name: "final-file-${{ matrix.os }}.json"
|
|
path: ${{ steps.write_file2.outputs.filePath }}
|