Skip to content

Update upload-docs-ios.yml #6

Update upload-docs-ios.yml

Update upload-docs-ios.yml #6

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_file1.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 -A && 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