Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce number of wf run when pr are in draft mode #160

Merged
merged 7 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
pr-label-check:
if: ${{ github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
steps:
- uses: docker://agilepathway/pull-request-label-checker:latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ on:
jobs:
check:
runs-on: ubuntu-latest
if: ${{ github.actor != 'dependabot[bot]' || contains(github.event.pull_request.labels.*.name, 'docker') || github.event_name == 'push' }} # ignore the pull request which comes from user depbot.
if: ${{ (github.actor != 'dependabot[bot]' && (github.event_name != 'pull_request' || !github.event.pull_request.draft )) || (github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'docker')) }}
steps:
- run: |
echo "docker build is required"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/license.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
license:
name: Check licenses
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
if: ${{ github.event.pull_request.draft == false }}
env:
GOPRIVATE: github.com/zaphiro-technologies/*
GH_ACCESS_TOKEN: ${{ secrets.REPO_PRIVATE_READ_PAT }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/markdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ on:
#RELEASE_NOTES.md
jobs:
changes:
if: ${{ !github.event.pull_request.draft }}
if: ${{ github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
outputs:
files_changed: ${{ steps.filter.outputs.markdown == 'true' || steps.filter.outputs.scripts == 'true' }}
Expand All @@ -81,7 +81,7 @@ jobs:
- '**/!(*RELEASE_NOTES).(md|MD)'
markdown:
needs: changes
if: ${{ needs.changes.outputs.files_changed == 'true' && !github.event.pull_request.draft }}
if: ${{ needs.changes.outputs.files_changed == 'true' && github.event.pull_request.draft == false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -145,7 +145,7 @@ jobs:
markdown-spellchecker:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.files_changed == 'true' && !github.event.pull_request.draft && (!inputs.skip-spell-check || inputs.skip-spell-check == '') }}
if: ${{ needs.changes.outputs.files_changed == 'true' && github.event.pull_request.draft == false && (!inputs.skip-spell-check || inputs.skip-spell-check == '') }}
steps:
- uses: actions/checkout@v4
with:
Expand Down
8 changes: 7 additions & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# GitHub Workflows Release Notes

## 0.0.3-dev - 2025-01-17
## 0.0.3-dev - 2025-02-06

### Features

Expand Down Expand Up @@ -47,6 +47,8 @@

### Dependencies

- Bump dawidd6/action-download-artifact from 7 to 8 (PR #158 by
@dependabot[bot])
- golang and docker workflows: Update trivy configuration to last github action
version (PR #140 by @chicco785)
- Use SonarSource/sonarqube-scan-action (PR #153 by @chicco785)
Expand Down Expand Up @@ -92,6 +94,10 @@
- Bump stefanzweifel/git-auto-commit-action from 4 to 5 (PR #92 by
@dependabot[bot])

### Refactoring

- Reduce number of wf run when pr are in draft mode (PR #160 by @chicco785)

## 0.0.2 - 2024-02-09

### Features
Expand Down
Loading