now using circleci token
@@ -17,6 +17,7 @@ jobs:
EVENT_OBJ: ${{ toJson(github.event) }}
COMMIT_SHA: ${{ github.event.workflow_run.head_sha }}
REPO_NAME: ${{ github.event.workflow_run.head_repository.full_name }}
+ CIRCLECI_TOKEN: ${{ secrets.CIRCLECI_TOKEN }}
run: |
echo "github.event.workflow_run.head_sha"
echo ${{ github.event.workflow_run.head_sha }}
@@ -29,10 +30,10 @@ jobs:
echo $PR_NUMBER
curl --request POST \
--url https://circleci.com/api/v2/project/gh/braindecode/braindecode/pipeline \
- --header 'Circle-Token: SECRETTOKEN' \
+ --header 'Circle-Token: $CIRCLECI_TOKEN' \
--header 'content-type: application/json' \
--header 'x-attribution-actor-id: github_actions' \
--header 'x-attribution-login: github_actions' \
- --data '{"branch":"pull/209/head","parameters":{"github-artifact-url":"test"}}'
+ --data '{"branch":"pull/$PR_NUMBER/head","parameters":{"github-artifact-url":"test2"}}'
echo "EVENT_OBJ"
echo $EVENT_OBJ
