diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 0795fea..8431ab5 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -2,7 +2,7 @@ name: Auto Increment Version and Tag on: workflow_run: - workflows: ["CI - Build & Test"] + workflows: ["License Compliance (Feluda)"] types: - completed @@ -54,10 +54,4 @@ jobs: fi git tag -a "$TAG" -m "Auto tag $TAG" - git push "https://x-access-token:${PAT}@github.com/${{ github.repository }}.git" "$TAG" - license-compliance: - needs: auto-tag - if: needs.auto-tag.outputs.tagged == 'true' - uses: ./.github/workflows/license-compliance.yml - permissions: - contents: read \ No newline at end of file + git push "https://x-access-token:${PAT}@github.com/${{ github.repository }}.git" "$TAG" \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7424399..d576c2e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: branches: [ main, master ] permissions: - contents: write + contents: read security-events: write jobs: diff --git a/.github/workflows/license-compliance.yml b/.github/workflows/license-compliance.yml index 9370c6f..3548a11 100644 --- a/.github/workflows/license-compliance.yml +++ b/.github/workflows/license-compliance.yml @@ -1,20 +1,22 @@ name: License Compliance (Feluda) on: - workflow_call: - inputs: - upload-artifacts: - required: false - type: boolean + workflow_run: + workflows: ["CI - Build & Test"] + types: + - completed default: true permissions: - contents: read + contents: write jobs: compliance: runs-on: ubuntu-latest - + if: > + github.event.workflow_run.conclusion == 'success' && + github.event.workflow_run.head_branch == 'main'&& + contains(github.event.workflow_run.head_commit.message, '[release ci]') steps: - name: Checkout repository uses: actions/checkout@v4