Skip to content

Commit

Permalink
notify-slack
Browse files Browse the repository at this point in the history
  • Loading branch information
maidh91 committed Oct 19, 2024
1 parent cdc99b0 commit f77f9d1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bump-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ jobs:
bump-deps:
uses: holepunchto/actions/.github/workflows/bump-deps.yml@v1
secrets: inherit

notify-slack: # TODO
21 changes: 9 additions & 12 deletions .github/workflows/bump-version-merged.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ on:
pull_request:
types: [closed]

env:
version: ${{ github.event.pull_request.title }}
channel-dev: ${{ contains(github.event.pull_request.labels.*.name, 'channel-dev') && 'true' }}
channel-staging: ${{ contains(github.event.pull_request.labels.*.name, 'channel-staging') && 'true' }}
channel-rc: ${{ contains(github.event.pull_request.labels.*.name, 'channel-rc') && 'true' }}

jobs:
tag:
if: ${{ contains(github.event.pull_request.labels.*.name, 'bump-version') }}
Expand All @@ -20,10 +14,10 @@ jobs:

- name: Tag
run: |
echo ${{ env.version }}
git tag ${{ env.version }}
git push --tags
version=${{ github.event.pull_request.title }}
echo "Bumping version to $version"
git tag $version -f
git push origin $version -f
pre-build:
needs: tag
Expand All @@ -34,10 +28,13 @@ jobs:
- name: Prepare channel
id: prepare-channel
run: |
channel-staging=${{ contains(github.event.pull_request.labels.*.name, 'channel-staging') && 'true' }}
channel-rc=${{ contains(github.event.pull_request.labels.*.name, 'channel-rc') && 'true' }}
channel=dev
if [[ ${{ env.channel-staging }} == 'true' ]]; then
if [[ "$channel-staging" == 'true' ]]; then
channel=stage
elif [[ ${{ env.channel-rc }} == 'true' ]]; then
elif [[ "$channel-rc" == 'true' ]]; then
channel=rc
fi
echo "Channel to build: $channel"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ jobs:
with:
version: ${{ inputs.version }}
labels: 'bump-version,channel-${{ inputs.channel }}'

notify-slack: # TODO

0 comments on commit f77f9d1

Please sign in to comment.