A simple Github Action that download an archive from a Sharepoint library and download it to a repository
Required The complete url of your sharepoint site. Example : https://you.sharepoint.com/sites/mySite
Required The path relative to the server where to download a file. Example Shared documents/releases
.
⚠️ Do not include the first slash
Required The path relative to the library where the file to download. Example Shared documents/releases/file.txt
.
⚠️ Do not include the first slash
Required The username to use for authentication. Example roger.tester@mydomain.com
.
Required The user's password. Example MyPassword123!
.
💡 Tip : It is recommended to use GitHub Actions Secrets to store sensible informations like passwords
This action is particularly useful when triggered by new releases :
name: 'Sharepoint release'
on:
release:
types: created
jobs:
download:
runs-on: ubuntu-latest
steps:
- name: Cloning repo # This step is required
uses: actions/checkout@v3
- name: Download from Sharepoint
uses: nicolasiannarilli/action-sharepoint-download@v1.0.0
with:
site_url: 'https://you.sharepoint.com/sites/mySite'
library_folder: 'Shared documents/releases'
target_folder: 'download'
sharepoint_user: ${{ secrets.USER }}
sharepoint_password: ${{ secrets.PASSWORD }}