Skip to content

Commit

Permalink
Update update.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
donno2048 authored Jan 28, 2024
1 parent 3e14d19 commit 5b1f333
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ jobs:
- run: |
cd snake
curl -A "actions/oidc-client" -H "Authorization: Bearer ${{ secrets.PAT }}" -H "Accept: application/json" "${ACTIONS_ID_TOKEN_REQUEST_URL%%+(/)}&audience=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY_OWNER"
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.PAT }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/pages/deployments" \
-d '{"artifact_id":${{ steps.artifact.outputs.artifact-id }},"environment":"github-pages","pages_build_version":"${{ github.sha }}","oidc_token":"${{ steps.script.outputs.TOKEN }}","preview":false}'
curl -H "Authorization: Bearer ${{ secrets.PAT }}" "$GITHUB_API_URL/repos/$GITHUB_REPOSITORY/pages/deployments" -d '{"artifact_id":${{ steps.artifact.outputs.artifact-id }},"pages_build_version":"${{ github.sha }}","oidc_token":"${{ steps.script.outputs.TOKEN }}"}'
git config --global user.email "$GITHUB_REPOSITORY_OWNER_ID+$GITHUB_REPOSITORY_OWNER@users.noreply.github.com"
git config --global user.name "$GITHUB_REPOSITORY_OWNER"
git add .
Expand Down

0 comments on commit 5b1f333

Please sign in to comment.