同步到 MS Todo #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 同步到 MS Todo | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0-14/1,22,23 * * *' | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Branch Filestorage Action | |
uses: moonrailgun/[email protected] | |
with: | |
branch: graphtoken | |
path: graphtoken.asc | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: 6.0.x | |
- name: Restore dependencies | |
run: dotnet restore ./TodoSynchronizer.CLI/TodoSynchronizer.CLI.csproj | |
- name: Build | |
run: dotnet build ./TodoSynchronizer.CLI/TodoSynchronizer.CLI.csproj --no-restore -c Release | |
- name: Run | |
run: ./TodoSynchronizer.CLI/bin/Release/net6.0/TodoSynchronizer.CLI -canvastoken ${{ secrets.CANVAS_TOKEN }} -graphtokenfile graphtoken.asc -configfile config.yaml -graphtokenkey ${{ secrets.KEY }} |