Skip to content

Commit

Permalink
reverted back to creating file
Browse files Browse the repository at this point in the history
  • Loading branch information
Talha Ali committed Nov 30, 2023
1 parent 5c4664d commit 58814fe
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions .github/workflows/setup_secrets_properties_workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,34 +15,30 @@ jobs:

- name: Decode and Create File
run: |
echo ${{ secrets.SECRETS_PROPERTIES }}
echo "Hello world"
echo "${{ secrets.SECRETS_PROPERTIES }}" | base64 --decode >> secrets.properties
# - name: Print Secrets
# run: cat ./secrets.properties
- name: Check File Existence
run: |
if [ -f secrets.properties ]; then
echo "secrets.properties exists."
else
echo "secrets.properties does not exist."
exit 1
fi
# - name: Check File Existence
# run: |
# if [ -f secrets.properties ]; then
# echo "secrets.properties exists."
# else
# echo "secrets.properties does not exist."
# exit 1
# fi
#
# - name: Check File Size
# run: |
# size=$(stat -c%s secrets.properties)
# echo "Size of secrets.properties: $size bytes."
# if [ $size -gt 0 ]; then
# echo "File is not empty."
# else
# echo "File is empty."
# exit 1
# fi
- name: Check File Size
run: |
size=$(stat -c%s secrets.properties)
echo "Size of secrets.properties: $size bytes."
if [ $size -gt 0 ]; then
echo "File is not empty."
else
echo "File is empty."
exit 1
fi
# - id: 'step-3'
# run: 'stat -c%s ./secrets.properties'
- id: 'step-3'
run: 'stat -c%s ./secrets.properties'
- id: 'step-4'
name: 'Upload secrets file'
uses: 'actions/upload-artifact@v3'
Expand Down

0 comments on commit 58814fe

Please sign in to comment.