From e0c4738a7007d70f0caf2d25705a481bc24c7062 Mon Sep 17 00:00:00 2001 From: Phani Pavan Kambhampati <60005847+kphanipavan@users.noreply.github.com> Date: Sat, 2 Sep 2023 12:41:50 +0530 Subject: [PATCH] Create menu-file.yml --- .github/workflows/menu-file.yml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/menu-file.yml diff --git a/.github/workflows/menu-file.yml b/.github/workflows/menu-file.yml new file mode 100644 index 0000000..6493b87 --- /dev/null +++ b/.github/workflows/menu-file.yml @@ -0,0 +1,45 @@ +name: Update Menu JSON Database File. + +on: + workflow_dispatch: + push: + branches: + - menu_scraper + pull_request: + branches: + - menu_scraper + +jobs: + compile: + name: Compile + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3.6.0 + with: + ref: "menu_scraper" + + - name: Setup Python + uses: actions/setup-python@v4.7.0 + with: + python-version: "3.11" + + - name: Install Packages + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + + - name: Compile Menu + run: python scrapeToJson.py + + - name: Create Release + uses: marvinpinto/action-automatic-releases@v1.2.1 + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + prerelease: false + draft: false + title: "Bi-Weekly Release" + files: | + out.txt + out.json