Skip to content

Commit

Permalink
Merge pull request #44 from ginzarb/use-github-access-token
Browse files Browse the repository at this point in the history
GitHub Workflowに提供されているGITHUB_TOKEN環境変数を利用する
  • Loading branch information
willnet authored Jun 25, 2024
2 parents f28563a + f8e9de2 commit 6253bb6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ jobs:
- name: Build with Middleman
run: bundle exec middleman build

- name: create token
id: create_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.PRIVATE_KEY }}

- name: Deploy
if: github.ref == 'refs/heads/source'
run: |
Expand All @@ -48,5 +41,4 @@ jobs:
GIT_COMMITTER_NAME: willnet
GIT_COMMITTER_EMAIL: [email protected]
GIT_AUTHOR_NAME: willnet
GIT_AUTHOR_EMAIL: [email protected]
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
GIT_AUTHOR_EMAIL: [email protected]

0 comments on commit 6253bb6

Please sign in to comment.