Skip to content

Commit

Permalink
Update CircleCI API version to v2
Browse files Browse the repository at this point in the history
  • Loading branch information
HAEKADI committed Oct 27, 2021
1 parent d5d9ee6 commit 34760f1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ jobs:
PYPI_USERNAME: openfisca-bot
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
CIRCLE_TOKEN: ${{ secrets.CIRCLECI_OPENFISCADOC_TOKEN }}
CIRCLE_BRANCH: ${{ github.head_ref }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -237,4 +238,9 @@ jobs:
run: "${GITHUB_WORKSPACE}/.github/publish-git-tag.sh"
- name: Update doc
run: |
curl -X POST --header 'Content-Type: application/json' -d '{"branch":"github-actions"}' https://circleci.com/api/v1.1/project/github/openfisca/openfisca-doc/build?circle-token=$CIRCLE_TOKEN
curl -X POST \
-H 'Circle-Token: $CIRCLE_TOKEN' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d "{\"branch\":\"${CIRCLE_BRANCH}\"} \
https://circleci.com/api/v2/project/github/openfisca/openfisca-doc/build

0 comments on commit 34760f1

Please sign in to comment.