Skip to content

ci: add cleaning task #114

ci: add cleaning task

ci: add cleaning task #114

name: backup-adapter CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
duplicate_runs:
runs-on: ubuntu-latest
name: Skip duplicate runs
continue-on-error: true
outputs:
should_skip: ${{ steps.skip_check.outputs.should_skip == 'true' && github.ref != 'refs/heads/main' }}
steps:
- id: skip_check
uses: fkirc/[email protected]
with:
concurrent_skipping: 'same_content'
do_not_skip: '["pull_request", "workflow_dispatch"]'
ci:
runs-on: ubuntu-latest
needs: duplicate_runs
if: ${{ needs.duplicate_runs.outputs.should_skip != 'true' }}
steps:
- name: Checkout
uses: actions/checkout@v4
# We need the full history for the commitlint task
with:
fetch-depth: 0
- name: Install Task
uses: arduino/setup-task@v2
- name: Install Dagger
run: |
curl -L https://dl.dagger.io/dagger/install.sh | BIN_DIR=$HOME/.local/bin sh
- name: Run CI task
run: |
task ci