Merge pull request #17 from packbackbooks/mgmt-190-competencies-respo… #41
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
| name: Sync Docs to Confluence | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| clear-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Check out code using git | |
| - name: Checkout to Branch | |
| uses: actions/checkout@v2 | |
| - name: Delete existing docs from Confluence | |
| run: ./scripts/clear.sh | |
| env: | |
| JIRA_USER: ${{ secrets.JIRA_USER }} | |
| JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} | |
| sync-docs: | |
| runs-on: ubuntu-latest | |
| container: kovetskiy/mark | |
| needs: clear-docs | |
| steps: | |
| - name: Checkout to Branch | |
| uses: actions/checkout@v2 | |
| - name: Sync docs to Confluence | |
| run: ./scripts/sync.sh | |
| env: | |
| JIRA_USER: ${{ secrets.JIRA_USER }} | |
| JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }} |