Skip to content

Commit

Permalink
change(action): change from Docker to Composite
Browse files Browse the repository at this point in the history
  • Loading branch information
tomassebestik committed Sep 6, 2024
1 parent 8543172 commit 5284912
Showing 1 changed file with 48 additions and 6 deletions.
54 changes: 48 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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/[email protected]
shell: bash

- name: Run sync_to_jira.py
run: |
source venv/bin/activate
python sync_jira_actions/sync_to_jira.py
shell: bash

0 comments on commit 5284912

Please sign in to comment.