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

Skip automatic release without new commits #19

Closed
Mzack9999 opened this issue Nov 13, 2022 · 1 comment · Fixed by #23
Closed

Skip automatic release without new commits #19

Mzack9999 opened this issue Nov 13, 2022 · 1 comment · Fixed by #23
Assignees
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Maintenance Updating phrasing or wording to make things clearer or removing ambiguity.

Comments

@Mzack9999
Copy link
Member

Description

A new release should not be created if there are no changes since the previous one (ref: https://github.com/projectdiscovery/team-backlogs/issues/228)

@Mzack9999 Mzack9999 added the Type: Maintenance Updating phrasing or wording to make things clearer or removing ambiguity. label Nov 13, 2022
@ehsandeep
Copy link
Member

ehsandeep commented Nov 14, 2022

I was looking at this other day to update release-tag.yml and found something like below can be used to get commit count from last tagged release, we probably need to use this information in next step to run only when get_commit > 0

    steps:
      - name: Check out code
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: Get Commit Count
        id: get_commit
        run: git rev-list  `git rev-list --tags --no-walk --max-count=1`..HEAD --count

tarunKoyalwar added a commit that referenced this issue Nov 15, 2022
Mzack9999 added a commit that referenced this issue Nov 15, 2022
@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Nov 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Maintenance Updating phrasing or wording to make things clearer or removing ambiguity.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants