Skip to content

added mergify rules #28

added mergify rules

added mergify rules #28

Workflow file for this run

name: tests
on:
push:
branches: [ main ]
pull_request:
types: [ opened, synchronize, reopened, edited, labeled ]
jobs:
tests:
name: tests
# https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution
# https://github.com/orgs/community/discussions/26261
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'ci') }}
runs-on: ubuntu-latest
steps:
# https://github.com/hmarr/debug-action
- uses: hmarr/debug-action@v2
- name: Show environment
run: |
echo "Workflow triggered by $GITHUB_EVENT_NAME"
if [[ ${{ github.event_name }} == 'pull_request' ]]; then
echo "PR labels: ${{ join(github.event.pull_request.labels.*.name, ', ') }}"
fi
- name: Ensure workspace ownership
run: echo "chown -R $USER $GITHUB_WORKSPACE" && sudo chown -R $USER $GITHUB_WORKSPACE
- name: Check out code
uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.MY_DEPLOY_KEY }}