This Action lets you Create/Update/Delete a file in a repository other than the one running the Action.
Required GitHub Token to use to access the target repository.
Required Owner of the target repository.
Required Target repository name.
Required Path of file in the repository to create/update/delete.
Required The commit message to use. Default "Automated workflow commit.".
Required If creating/updating, the content for the file. Default "".
Required If the file should be deleted, instead of created/updated. Default "false".
uses: spacelift-io/[email protected]
with:
github-token: ${{ secrets.GH_TOKEN }}
owner: spacelift-io
repository: update-file-action
target-file-path: 'test/main2.md'
content: |
Amazing
Great
Content