From 5bac1e3d76f22da42c80ea7d55ffc95bb1500113 Mon Sep 17 00:00:00 2001 From: Darkrock04 Date: Mon, 2 Dec 2024 23:35:54 +0530 Subject: [PATCH] changes in workflow --- .github/workflows/main.yml | 39 ++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 561b170..d27448d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,17 +1,32 @@ -name: Super-Linter +name: QR Code Generator CI -on: push +on: [push, pull_request] jobs: - super-lint: - name: Lint code base + build: runs-on: ubuntu-latest + steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Run Super-Linter - uses: github/super-linter@v4 - env: - DEFAULT_BRANCH: main - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install qrcode pillow + + - name: Run QR code generator + run: | + python QR.py << EOF + test + EOF + + - name: Upload QR code artifact + uses: actions/upload-artifact@v2 + with: + name: qr-code + path: QRcode.png