Skip to content

Commit

Permalink
ユーザーチェック
Browse files Browse the repository at this point in the history
  • Loading branch information
Kon Toshihito committed Nov 30, 2023
1 parent adb31be commit c6adcca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/approve.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ jobs:
with:
version: 0.7.1

- name: Notify slack workflow start
- name: Check unauthorized users
if: ${{ github.actor != "ToshihitoKon" }}
run: exit 1

- name: Approve
env:
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
run: |
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ jobs:
--username "GitHub Actions: ${{ github.workflow }}" \
--text ":thumbsup: Deploy Approved!\nhash: ${{ github.sha }}"
- run: |
- name: Deploy
# デプロイの例として、README.mdのLast deployを更新する
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
sed -i "s/Last deploy.*/Last deploy: ${{ github.sha }}/" README.md
Expand Down

0 comments on commit c6adcca

Please sign in to comment.