Skip to content

Commit

Permalink
Create sheet2FDP.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
annefou authored Apr 7, 2024
1 parent 2bd2e8b commit 2164532
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/sheet2FDP.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# This is a basic workflow to help you get started with Actions
name: Sheet2FDP
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
sheet2fdp:
# The type of runner that the job will run on

name: Sheet2FDP
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: "3.11"
- name: Prepare
shell: bash -l {0}
run: |
git config user.name github-actions
git config user.email [email protected]
git pull
conda create -n sheet2fdp python=3.11 pandas openpyxl requests rdflib
conda activate sheet2fdp
- name: Fetch and Convert
shell: bash -l {0}
env:
FILE_NAME: ${{secrets.FILE_NAME}}
SHEET_ID: ${{secrets.SHEET_ID}}
run: |
conda activate sheet2fdp
python ./src/convert.py
- name: commit-artifacts
env:
FILE_NAME: ${{secrets.FILE_NAME}}
run: |
git add .
git diff-index --quiet HEAD || git commit -m "new output generated from Google sheet has been generated"
git push

0 comments on commit 2164532

Please sign in to comment.