Skip to content

Commit

Permalink
test with slack
Browse files Browse the repository at this point in the history
  • Loading branch information
aalves08 committed Nov 11, 2024
1 parent 51bb3a5 commit d59deaf
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build-extension-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,12 @@ jobs:
publish="$publish -f"
fi
exit 0;
$publish
- name: Upload charts artifact
if: github.ref_type == 'tag' || github.event_name != 'pull_request' || inputs.is_test == 'true'
if: github.ref_type == 'tag' || (github.ref == 'refs/heads/main' && github.event_name != 'pull_request') || inputs.is_test == 'true'
uses: actions/upload-artifact@v3
with:
name: charts
Expand Down
32 changes: 16 additions & 16 deletions .github/workflows/test-extension-workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@ jobs:
test_ext_branch: 'main'
secrets:
registry_token: ${{ secrets.GITHUB_TOKEN }}
test-release-shell-pkg-master:
needs: retrieve-tags-master
uses: aalves08/dashboard/.github/workflows/release-shell-pkg.yaml@12032-reusable-wf-tests-2
with:
is_test: 'true'
test_branch: '12032-reusable-wf-tests-2'
tag: ${{ needs.retrieve-tags-master.outputs.SHELL_TAG }}
test-release-creators-pkg-master:
needs: retrieve-tags-master
uses: aalves08/dashboard/.github/workflows/release-shell-pkg.yaml@12032-reusable-wf-tests-2
with:
is_test: 'true'
test_branch: '12032-reusable-wf-tests-2'
tag: ${{ needs.retrieve-tags-master.outputs.CREATORS_TAG }}
# test-release-shell-pkg-master:
# needs: retrieve-tags-master
# uses: aalves08/dashboard/.github/workflows/release-shell-pkg.yaml@12032-reusable-wf-tests-2
# with:
# is_test: 'true'
# test_branch: '12032-reusable-wf-tests-2'
# tag: ${{ needs.retrieve-tags-master.outputs.SHELL_TAG }}
# test-release-creators-pkg-master:
# needs: retrieve-tags-master
# uses: aalves08/dashboard/.github/workflows/release-shell-pkg.yaml@12032-reusable-wf-tests-2
# with:
# is_test: 'true'
# test_branch: '12032-reusable-wf-tests-2'
# tag: ${{ needs.retrieve-tags-master.outputs.CREATORS_TAG }}
slack-message:
if: always()
runs-on: ubuntu-latest
Expand All @@ -82,7 +82,7 @@ jobs:
steps:
- name: Slack message for workflow success
env:
SLACK_URL: ${{ secrets.SLACK_WEBHOOK_URL_WORKFLOWS }}
SLACK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: success()
shell: bash
run: |
Expand All @@ -92,7 +92,7 @@ jobs:
$SLACK_URL
- name: Slack message for workflow success
env:
SLACK_URL: ${{ secrets.SLACK_WEBHOOK_URL_WORKFLOWS }}
SLACK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
if: success()
shell: bash
run: |
Expand Down

0 comments on commit d59deaf

Please sign in to comment.