Skip to content

Commit 48a01ee

Browse files
fix: Fix notify action (#476)
* fix: Notify action Signed-off-by: Evgeniy Dikevich <[email protected]>
1 parent 3cd4744 commit 48a01ee

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/update-catalyst-ci-deps.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,10 @@ on:
1717
type: string
1818
default: ""
1919

20-
permissions:
21-
contents: write
22-
pull-requests: write
23-
issues: write
24-
2520
jobs:
2621
update_ci_deps:
2722
uses: ./.github/workflows/update-catalyst-deps.yml
2823
with:
2924
notify_type: ${{ github.event_name == 'workflow_dispatch' && inputs.notify_type || 'pr' }}
30-
repos: ${{ inputs.repos != '' && inputs.repos ||'input-output-hk/catalyst-voices, input-output-hk/hermes, input-output-hk/catalyst-libs, input-output-hk/catalyst-reviews, input-output-hk/catalyst-som, input-output-hk/catalyst-execution, input-output-hk/norns' }}
25+
repos: ${{ inputs.repos != '' && inputs.repos || 'input-output-hk/catalyst-voices, input-output-hk/hermes, input-output-hk/catalyst-libs, input-output-hk/catalyst-reviews, input-output-hk/catalyst-som, input-output-hk/catalyst-execution, input-output-hk/norns' }}
3126
secrets: inherit

.github/workflows/update-catalyst-deps.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ on:
1212
type: string
1313
default: ""
1414

15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
issues: write
19+
1520
env:
16-
GH_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
21+
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
1722

1823
jobs:
1924
notify-dependents:
@@ -35,7 +40,6 @@ jobs:
3540
repos="${{ inputs.repos }}"
3641
echo "matrix=$(echo -n "$repos" | sed 's/ //g' | jq -R -s -c 'split(",")')" >> $GITHUB_OUTPUT
3742
38-
3943
create-pr-or-issue:
4044
runs-on: ubuntu-latest
4145
needs: notify-dependents
@@ -46,6 +50,7 @@ jobs:
4650
- uses: actions/checkout@v4
4751
with:
4852
repository: ${{ matrix.repo }}
53+
token: ${{ secrets.CI_BOT_TOKEN }}
4954

5055
- name: Create PR or Issue for dependent repository
5156
env:
@@ -57,8 +62,8 @@ jobs:
5762
UPDATED_REPO="github.com/${{ github.repository }}"
5863
REPO_NAME=$(echo ${{ github.repository }} | cut -d/ -f2)
5964
60-
git config --global user.name "github-actions[bot]"
61-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
65+
git config --global user.name catalyst-cibot
66+
git config --global user.email "[email protected]"
6267
6368
if [ "${{ inputs.notify_type }}" == "pr" ]; then
6469
echo "Create PR in ${{ matrix.repo }}"
@@ -70,12 +75,12 @@ jobs:
7075
"s|(IMPORT[[:space:]]+$UPDATED_REPO/(earthly/)?[^:]+:)v[0-9]+\.[0-9]+\.[0-9]+|\1$RELEASE_TAG|" {} +
7176
7277
git add .
73-
git commit -m "Update $REPO_NAME to $RELEASE_TAG"
78+
git commit -m "chore($REPO_NAME): Update $REPO_NAME to $RELEASE_TAG"
7479
git push origin "$branch_name"
7580
7681
gh pr create \
7782
--repo "${{ matrix.repo }}" \
78-
--title "Update $REPO_NAME to $RELEASE_TAG" \
83+
--title "chore($REPO_NAME): Update $REPO_NAME to $RELEASE_TAG" \
7984
--body "Update $REPO_NAME to $RELEASE_TAG. Release: $RELEASE_URL" \
8085
--head "$branch_name" \
8186
--base "$default_branch"

0 commit comments

Comments
 (0)