From 3def6294774eed6682dccc21284ffd5325f459db Mon Sep 17 00:00:00 2001 From: Tomas Sebestik Date: Fri, 6 Sep 2024 08:55:40 +0200 Subject: [PATCH] change(action): change from Docker to Composite --- action.yml | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 41 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index 21d98fe..6fa61f3 100644 --- a/action.yml +++ b/action.yml @@ -1,10 +1,10 @@ --- -name: "GitHub to JIRA Issue Sync" -description: "Performs simple one way syncing of GitHub issues into JIRA." +name: Sync GitHub Issues to JIRA +description: 'Performs simple one way syncing of GitHub issues into JIRA.' branding: - icon: "fast-forward" - color: "green" + icon: 'fast-forward' + color: 'green' inputs: cron_job: @@ -14,5 +14,40 @@ inputs: required: false runs: - using: "docker" - image: "Dockerfile" + using: 'composite' + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + repository: espressif/sync-jira-actions + ref: change/composite-action + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.11' + cache: 'pip' + + - name: Install Python dependencies + run: | + python -m venv venv + source venv/bin/activate + pip install --upgrade pip + pip install -r requirements.txt + shell: bash + + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + cache: 'npm' + + - name: Install markdown2confluence + run: npm install -g @shogobg/markdown2confluence@0.1.6 + shell: bash + + - name: Run sync_to_jira.py + run: | + source venv/bin/activate + python sync_jira_actions/sync_to_jira.py + shell: bash