Merge pull request #2649 from DataDog/hotfix/3.5.1 #39
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: Publish Changelog and Feature Docs to Confluence | |
| on: | |
| push: | |
| branches: | |
| - develop | |
| paths: | |
| - 'CHANGELOG.md' | |
| - '/DatadogRUM/RUM_FEATURE.md' | |
| - '/DatadogSessionReplay/SESSION_REPLAY_FEATURE.md' | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Prepare Changelog and Feature Docs | |
| run: | | |
| mkdir -p publish_folder | |
| cp CHANGELOG.md publish_folder/dd-ios-sdk-changelog.md | |
| echo "Publishing CHANGELOG.md" | |
| cp DatadogRUM/RUM_FEATURE.md publish_folder/dd-sdk-ios-rum-feature.md | |
| echo "Publishing RUM_FEATURE.md" | |
| cp DatadogSessionReplay/SESSION_REPLAY_FEATURE.md publish_folder/dd-sdk-ios-session-replay-feature.md | |
| echo "Publishing SESSION_REPLAY_FEATURE.md" | |
| - name: Publish Markdown to Confluence | |
| uses: markdown-confluence/publish-action@7767a0a7f438bb1497ee7ffd7d3d685b81dfe700 # v5 | |
| with: | |
| confluenceBaseUrl: ${{ secrets.DATADOG_CONFLUENCE_BASE_URL }} | |
| confluenceParentId: ${{ secrets.CONFLUENCE_PARENT_ID }} | |
| atlassianUserName: ${{ secrets.CONFLUENCE_ROBOT_RUM_EMAIL }} | |
| atlassianApiToken: ${{ secrets.CONFLUENCE_ROBOT_RUM_API_KEY }} | |
| contentRoot: '.' | |
| folderToPublish: 'publish_folder' |