[#96] .forgejo: Fix DCO action

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2023-10-19 11:41:44 +03:00
parent e970e52eea
commit 27db0ac943

View file

@ -1,21 +1,21 @@
name: DCO check name: DCO action
on: [pull_request]
on:
pull_request:
branches:
- master
jobs: jobs:
commits_check_job: dco:
name: DCO
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Commits Check
steps: steps:
- name: Get PR Commits - uses: actions/checkout@v3
id: 'get-pr-commits'
uses: tim-actions/get-pr-commits@master
with: with:
token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0
- name: DCO Check
uses: tim-actions/dco@master - name: Setup Go
uses: actions/setup-go@v3
with: with:
commits: ${{ steps.get-pr-commits.outputs.commits }} go-version: '1.21'
- name: Run commit format checker
uses: https://git.frostfs.info/TrueCloudLab/dco-go@v2
with:
from: 'origin/${{ github.event.pull_request.base.ref }}'