Upload Portal: Simulation files from Markus S. Miettinen (#169) #9
This file contains hidden or 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: Refresh Upload Portal Data | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'Molecules/**' | |
| workflow_dispatch: | |
| jobs: | |
| refresh-upload-portal: | |
| runs-on: ubuntu-latest | |
| if: github.repository == 'NMRLipids/BilayerData' | |
| steps: | |
| - name: Hit refresh endpoint | |
| id: refresh | |
| run: | | |
| curl --silent --show-error --fail-with-body \ | |
| -X POST \ | |
| -H "Authorization: Bearer ${{ secrets.UPLOAD_PORTAL_REFRESH_TOKEN }}" \ | |
| https://upload-portal.nmrlipids.fi/api/refresh-databank-files |