Skip to content

Update upload-docs-ios.yml #4

Update upload-docs-ios.yml

Update upload-docs-ios.yml #4

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