Skip to content

Commit

Permalink
update github actions workflows (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezrah committed Sep 28, 2022
1 parent 1494c1f commit 204fa81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy preview
name: Deploy
on:
pull_request:

Expand All @@ -10,8 +10,9 @@ permissions:
jobs:
deploy:
if: ${{ github.repository == 'primer/octicons' }}
name: Build and deploy
uses: primer/.github/.github/workflows/deploy_preview.yml@main
name: Preview
# SHA for security hardening. Points at last verified HEAD of main branch.
uses: primer/.github/.github/workflows/deploy_preview.yml@0cec9b9914f358846163f2428663b58da41028c9
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/deploy_production.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy to production
name: Deploy

on:
push:
Expand All @@ -18,8 +18,9 @@ permissions:

jobs:
build_deploy:
name: Build and deploy
uses: primer/.github/.github/workflows/deploy.yml@main
name: Production
# Uses SHA for security hardening. Points at last verified HEAD of main branch.
uses: primer/.github/.github/workflows/deploy.yml@0cec9b9914f358846163f2428663b58da41028c9
secrets:
gh_token: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down

0 comments on commit 204fa81

Please sign in to comment.