Update upload-docs-ios.yml #4
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: Upload Docs iOS | |
on: | |
pull_request: | |
types: | |
- opened | |
branches: | |
- 'master' | |
push: | |
branches: | |
- '**' | |
jobs: | |
upload-docs: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create local changes | |
run: | | |
echo "This is a generated file." > generated_file.txt | |
- name: Commit TXT file to docs branch | |
run: | | |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git fetch || git checkout -b docs | |
git add generated_file.txt | |
git commit -m "Add generated TXT file" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: docs |