DotSlash #1
This file contains 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
name: DotSlash | |
on: | |
workflow_run: | |
workflows: [release] | |
types: | |
- completed | |
jobs: | |
generate-dotslash-files: | |
name: Generating and uploading DotSlash files | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
steps: | |
- uses: facebook/dotslash-publish-release@v1 | |
# This is necessary because the action uses | |
# `gh release upload` to publish the generated DotSlash file(s) | |
# as part of the release. | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
# Additional file that lives in your repo that defines | |
# how your DotSlash file(s) should be generated. | |
config: .github/workflows/dotslash-config.json | |
# Tag for the release to to target. | |
tag: ${{ github.event.workflow_run.head_branch }} |