Skip to content

Commit

Permalink
testing yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmeline2002 committed Jun 24, 2024
1 parent 89703ce commit d2cfb05
Showing 1 changed file with 16 additions and 25 deletions.
41 changes: 16 additions & 25 deletions .github/workflows/copy_readme_updates_to_rtd_source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,21 @@ jobs:
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: Checkout repository
uses: actions/checkout@v2

# - name: Copy file
# run: |
# mkdir -p ../../docs/source/installation
# cp ../../../temp.text ../../docs/source/installation/temp.text
- name: Create destination directory
run: mkdir -p ../../docs/source/installation

# - 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 }}
- name: Copy file
run: 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 ../../docs/source/installation/temp.text
git commit -m "Copy file to destination folder on push"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d2cfb05

Please sign in to comment.