Created
November 30, 2020 17:19
-
-
Save superarts/25501d2d92e8880b31b65e5bc6c942ed to your computer and use it in GitHub Desktop.
YAML Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert by http://www.yamllint.com/ | |
# | |
# FLAT | |
# | |
- &UPLOAD_ASSET | |
name: Upload PDF Asset | |
if: success() | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: &UPLOAD_ASSET_WITH | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: Documents/third-party-licenses.pdf | |
asset_name: third-party-licenses.pdf | |
asset_content_type: application/pdf | |
- <<: *UPLOAD_ASSET | |
with: | |
asset_path: Documents/dependencies-list.pdf | |
asset_name: dependencies-list.pdf | |
# TO: | |
--- | |
- | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: success() | |
name: "Upload PDF Asset" | |
uses: actions/upload-release-asset@v1 | |
with: | |
asset_content_type: application/pdf | |
asset_name: third-party-licenses.pdf | |
asset_path: Documents/third-party-licenses.pdf | |
upload_url: "${{ steps.create_release.outputs.upload_url }}" | |
- | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: success() | |
name: "Upload PDF Asset" | |
uses: actions/upload-release-asset@v1 | |
with: | |
asset_name: dependencies-list.pdf | |
asset_path: Documents/dependencies-list.pdf | |
# | |
# NESTING | |
# | |
- &UPLOAD_ASSET | |
name: Upload PDF Asset | |
if: success() | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: &UPLOAD_ASSET_WITH | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: Documents/third-party-licenses.pdf | |
asset_name: third-party-licenses.pdf | |
asset_content_type: application/pdf | |
- <<: *UPLOAD_ASSET | |
with: | |
<<: *UPLOAD_ASSET_WITH | |
asset_path: Documents/dependencies-list.pdf | |
asset_name: dependencies-list.pdf | |
# TO: | |
--- | |
- | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: success() | |
name: "Upload PDF Asset" | |
uses: actions/upload-release-asset@v1 | |
with: | |
asset_content_type: application/pdf | |
asset_name: third-party-licenses.pdf | |
asset_path: Documents/third-party-licenses.pdf | |
upload_url: "${{ steps.create_release.outputs.upload_url }}" | |
- | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
if: success() | |
name: "Upload PDF Asset" | |
uses: actions/upload-release-asset@v1 | |
with: | |
asset_content_type: application/pdf | |
asset_name: dependencies-list.pdf | |
asset_path: Documents/dependencies-list.pdf | |
upload_url: "${{ steps.create_release.outputs.upload_url }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment