From 5001cf119cc7e8e222d695595db90ab63b689c92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Tue, 30 Jul 2024 16:01:19 +0200 Subject: [PATCH] ci: add vars also add support for act --- .github/workflows/run.yml | 8 ++++---- .gitignore | 4 +++- act_events/README.md | 1 + act_events/new_issue.json | 12 ++++++++++++ 4 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 act_events/README.md create mode 100644 act_events/new_issue.json diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml index 9c42765..1698b2a 100644 --- a/.github/workflows/run.yml +++ b/.github/workflows/run.yml @@ -1,4 +1,4 @@ -name: Run the action +name: Sync issues to Freelo on: workflow_dispatch: @@ -9,7 +9,7 @@ on: jobs: run-my-action: - name: Checks if this action works + name: Run sync runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -17,6 +17,6 @@ jobs: with: email: ${{ secrets.FREELO_EMAIL }} api-key: ${{ secrets.FREELO_TOKEN }} - project-id: "407412" - tasklist-id: "1167357" + project-id: ${{ vars.FREELO_PROJECT }} + tasklist-id: ${{ vars.FREELO_TASKLIST }} github-token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 99665e4..259f1aa 100644 --- a/.gitignore +++ b/.gitignore @@ -173,4 +173,6 @@ out # Finder (MacOS) folder config .DS_Store -lib \ No newline at end of file +lib +.secrets +.vars \ No newline at end of file diff --git a/act_events/README.md b/act_events/README.md new file mode 100644 index 0000000..19239bb --- /dev/null +++ b/act_events/README.md @@ -0,0 +1 @@ +These can be passed to [act](https://nektosact.com) to test the action locally. \ No newline at end of file diff --git a/act_events/new_issue.json b/act_events/new_issue.json new file mode 100644 index 0000000..5dfb00d --- /dev/null +++ b/act_events/new_issue.json @@ -0,0 +1,12 @@ +{ + "action":"opened", + "issue":{ + "body":"Testing issue through Act", + "number":"123", + "title":"GitHub Action Test", + "url":"https://github.com/hernikplays/freelo-action", + "user":{ + "login":"hernikplays" + } + } +} \ No newline at end of file