mirror of
https://github.com/timheuer/base64-to-file.git
synced 2026-10-02 08:56:05 +03:00
chore: update workflow configuration for consistency and versioning 🔧
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
1 parent
aec05e58c6
commit
dfa5a5dd38
1 file changed
+8
-10
@@ -5,8 +5,6 @@ on:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
# test action works running from the graph
|
||||
@@ -14,23 +12,23 @@ jobs:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
os: [ ubuntu-latest, windows-latest ]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Write file (1)
|
||||
id: write_file
|
||||
uses: ./
|
||||
with:
|
||||
fileName: 'temp/dir/not/exists/myTemporaryFile.txt'
|
||||
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'
|
||||
fileName: "myTemporaryFile.json"
|
||||
encodedString: ${{ secrets.ENCODED_JSON }}
|
||||
|
||||
- name: Echo file
|
||||
@@ -38,13 +36,13 @@ jobs:
|
||||
echo ${{ steps.write_file.outputs.filePath }}
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: 'final-file-${{ matrix.os }}.txt'
|
||||
name: "final-file-${{ matrix.os }}.txt"
|
||||
path: ${{ steps.write_file.outputs.filePath }}
|
||||
|
||||
- name: Upload Artifact 2
|
||||
uses: actions/upload-artifact@v3
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: 'final-file-${{ matrix.os }}.json'
|
||||
name: "final-file-${{ matrix.os }}.json"
|
||||
path: ${{ steps.write_file2.outputs.filePath }}
|
||||
Reference in new issue
Block a user