diff --git a/action.yml b/action.yml index 21d98fe..392b392 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,47 @@ 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' + + - name: Cache npm dependencies + uses: actions/cache@v3 + with: + path: ~/.npm/_cacache + key: node-${{ hashFiles('package-lock.json') }} + restore-keys: | + node- + + - 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