Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SonarSource/gh-action_build-notify
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2.0.0
Choose a base ref
...
head repository: SonarSource/gh-action_build-notify
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2.1.0
Choose a head ref
  • 6 commits
  • 4 files changed
  • 3 contributors

Commits on Oct 17, 2024

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fe70c6f View commit details

Commits on Oct 30, 2024

  1. Copy the full SHA
    7f6071c View commit details
  2. chore(deps): update sonarsource/gh-action_pre-commit action to v1.0.5 (

    …#30)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Oct 30, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e951c78 View commit details

Commits on Dec 4, 2024

  1. chore(deps): update slackapi/slack-github-action action to v1.27.1 (#34)

    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Dec 4, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    8f7106d View commit details

Commits on Jan 9, 2025

  1. chore(deps): update sonarsource/gh-action_pre-commit action to v1.0.6 (

    …#36)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Jan 9, 2025

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    9610817 View commit details

Commits on Feb 4, 2025

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4e96c8a View commit details
Showing with 14 additions and 6 deletions.
  1. +10 −2 .github/workflows/main.yaml
  2. +1 −1 .github/workflows/pre-commit.yml
  3. +2 −2 README.md
  4. +1 −1 scripts/updatevbranch.sh
12 changes: 10 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -29,10 +29,18 @@ jobs:
&& github.event.check_run.conclusion != 'cancelled'
&& github.event.check_run.conclusion != 'skipped'
&& github.event.check_run.conclusion != 'neutral'
||
(github.event_name == 'check_suite' &&
contains(fromJSON('["cirrus-ci", "sonarqube-next", "sonarcloud", "azure-pipelines"]'), github.event.check_suite.app.slug)
&& ( contains(fromJSON('["main", "master"]'), github.event.check_suite.head_branch) || startsWith(github.event.check_suite.head_branch, 'dogfood-') || startsWith(github.event.check_suite.head_branch, 'branch-') )
&& github.event.check_suite.conclusion != 'success'
&& github.event.check_suite.conclusion != 'cancelled'
&& github.event.check_suite.conclusion != 'skipped'
&& github.event.check_suite.conclusion != 'neutral')
steps:
- name: Vault Secrets
id: secrets
uses: SonarSource/vault-action-wrapper@3996073b47b49ac5c58c750d27ab4edf469401c8 # 3.0.1
uses: SonarSource/vault-action-wrapper@d6d745ffdbc82b040df839b903bc33b5592cd6b0 # 3.0.2
with:
secrets: |
development/kv/data/slack webhook | slack_webhook;
@@ -72,7 +80,7 @@ jobs:
}
- name: Send Slack notification
uses: slackapi/slack-github-action@37ebaef184d7626c5f204ab8d3baff4262dd30f0 # v1.27.0
uses: slackapi/slack-github-action@fcfb566f8b0aab22203f066d80ca1d7e4b5d05b3 # v1.27.1
env:
SLACK_WEBHOOK_URL: ${{ fromJSON(steps.secrets.outputs.vault).slack_webhook }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -6,6 +6,6 @@ jobs:
name: "pre-commit"
runs-on: ubuntu-latest
steps:
- uses: SonarSource/gh-action_pre-commit@3c7fc5aae134cae8554df61c1c802612b0e66296 # 1.0.3
- uses: SonarSource/gh-action_pre-commit@fc9d73025994fd1c2b96d568c8c8a4af82a3ae21 # 1.0.6
with:
extra-args: --from-ref=origin/${{ github.event.pull_request.base.ref }} --to-ref=${{ github.event.pull_request.head.sha }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -41,8 +41,8 @@ Create a new GitHub workflow:
---
name: Slack Notifications
on:
check_run:
types: [rerequested, completed]
check_suite:
types: [completed]

jobs:
slack-notifications:
2 changes: 1 addition & 1 deletion scripts/updatevbranch.sh
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ set -xeuo pipefail
version=$1
vbranch="v${version%%.*}"
git fetch --tags --all
git checkout "$vbranch"
git checkout -B "$vbranch"
git update-ref -m "reset: update branch $vbranch to tag $version" "refs/heads/$vbranch" "$version"
git push --force origin "$vbranch:refs/heads/$vbranch" || (
git show -s --pretty=format:'%h%d' "$vbranch" "origin/$vbranch" "$version"