Skip to content

Commit

Permalink
chore: Sync changes from the template
Browse files Browse the repository at this point in the history
  • Loading branch information
oprypkhantc authored and package-sync[bot] committed Apr 30, 2024
1 parent 17b506c commit eb0772c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/template-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,17 @@ jobs:
name: Workflow keepalive
runs-on: packages
container: maniator/gh:v2.48.0
if: github.event_name == 'schedule'

permissions:
actions: write

env:
GH_TOKEN: ${{ github.token }}

steps:
- uses: tenantcloud/gh-workflow-keepalive@oprypkhantc-patch-1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- if: ${{ startsWith(github.workflow_ref, format('{0}/.github/workflows/', github.repository)) }}
run: |
workflow="${GITHUB_WORKFLOW_REF%%@*}"
workflow="${workflow#${GITHUB_REPOSITORY}/.github/workflows/}"
gh api -X PUT "repos/${GITHUB_REPOSITORY}/actions/workflows/${workflow}/enable"
4 changes: 3 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Tests

on: [pull_request]
on:
workflow_dispatch:
pull_request:

jobs:
phpunit:
Expand Down

0 comments on commit eb0772c

Please sign in to comment.