mirror of
https://github.com/hernikplays/freelo-action.git
synced 2024-11-24 08:41:05 +01:00
ci: add vars
also add support for act
This commit is contained in:
parent
9a39f88538
commit
5001cf119c
4 changed files with 20 additions and 5 deletions
8
.github/workflows/run.yml
vendored
8
.github/workflows/run.yml
vendored
|
@ -1,4 +1,4 @@
|
||||||
name: Run the action
|
name: Sync issues to Freelo
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-my-action:
|
run-my-action:
|
||||||
name: Checks if this action works
|
name: Run sync
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -17,6 +17,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
email: ${{ secrets.FREELO_EMAIL }}
|
email: ${{ secrets.FREELO_EMAIL }}
|
||||||
api-key: ${{ secrets.FREELO_TOKEN }}
|
api-key: ${{ secrets.FREELO_TOKEN }}
|
||||||
project-id: "407412"
|
project-id: ${{ vars.FREELO_PROJECT }}
|
||||||
tasklist-id: "1167357"
|
tasklist-id: ${{ vars.FREELO_TASKLIST }}
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -174,3 +174,5 @@ out
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
lib
|
lib
|
||||||
|
.secrets
|
||||||
|
.vars
|
1
act_events/README.md
Normal file
1
act_events/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
These can be passed to [act](https://nektosact.com) to test the action locally.
|
12
act_events/new_issue.json
Normal file
12
act_events/new_issue.json
Normal file
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue