Skip to content

How to make a workflow file to save the output as a file to my GitHub Repo? #26672

Discussion options

You must be logged in to vote

Hi @piyushke , 

Based on my understanding of your requirement, you want to push the index.html which created/changed during the workflow execution to your GitHub Repo. 

You could add some steps to commit changes and push back to current repo. There is my example workflow yml:

name: Update index.html

on: push

jobs:
run:
runs-on: windows-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
  uses: actions/setup-python@v1
  with:
    python-version: '3.x'
- name: Install dependencies
  run: |
    dir
    python -m pip install --upgrade pip
    pip install -r requirements.txt
    python update.py
    dir

- name: Commit files
  id: commit
  run: |
    git config --local user.email …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
2 replies
@Pamellamartins
Comment options

@airtower-luna
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
5 participants