Skip to content

testing yaml file

testing yaml file #2

name: copy readme updates to rtd source
on:
push:
branches:
- docs # Change to your branch name if different
jobs:

Check failure on line 8 in .github/workflows/copy_readme_updates_to_rtd_source.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/copy_readme_updates_to_rtd_source.yaml

Invalid workflow file

You have an error in your yaml syntax on line 8
copy-file:
runs-on: ubuntu-latest
steps:
- name: copy module sample
hosts: all
tasks:
- name: Copy file task
copy:
src: ../../../temp.text
dest: ../../docs/source/installation/temp.text
register: result
- debug:
var: result
# - name: Checkout repository
# uses: actions/checkout@v2
# - name: Copy file
# run: |
# mkdir -p ../../docs/source/installation
# cp ../../../temp.text ../../docs/source/installation/temp.text
# - name: Commit changes
# run: |
# git config --global user.name "github-actions[bot]"
# git config --global user.email "github-actions[bot]@users.noreply.github.com"
# git add destination_folder/your_file.txt
# git commit -m "Copy file to destination folder on push"
# git push
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}