Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/update-catalyst-ci-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@ on:
description: "Comma separated list of repositories"
type: string
default: ""
test:
description: ""
type: string
default: ""

jobs:
update_ci_deps:
uses: ./.github/workflows/update-catalyst-deps.yml
with:
notify_type: ${{ github.event_name == 'workflow_dispatch' && inputs.notify_type || 'pr' }}
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' }}
test: ${{ inputs.test }}
secrets: inherit
33 changes: 28 additions & 5 deletions .github/workflows/update-catalyst-deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: "Comma separated list of repositories"
type: string
default: ""
test:
description: ""
type: string
default: ""

permissions:
contents: write
Expand All @@ -31,8 +35,13 @@ jobs:
- name: Get release info
id: release_info
run: |
echo "tag_name=$(gh release list -R ${{ github.repository }} --json name,isLatest --jq '.[] | select(.isLatest)|.name')" >> $GITHUB_OUTPUT
echo "release_url=$(gh release view -R ${{ github.repository }} $tag_name --json url | jq -r .[])" >> $GITHUB_OUTPUT
if [ "${{ inputs.test }}" == "" ]; then
echo "tag_name=$(gh release list -R ${{ github.repository }} --json name,isLatest --jq '.[] | select(.isLatest)|.name')" >> $GITHUB_OUTPUT
echo "release_url=$(gh release view -R ${{ github.repository }} $tag_name --json url | jq -r .[])" >> $GITHUB_OUTPUT
else
echo "tag_name=${{ inputs.test }}" >> $GITHUB_OUTPUT
echo "release_url=${{ inputs.test }}" >> $GITHUB_OUTPUT
fi

- name: Generate repos matrix
id: matrix
Expand All @@ -52,18 +61,32 @@ jobs:
repository: ${{ matrix.repo }}
token: ${{ secrets.CI_BOT_TOKEN }}

- name: Import GPG key
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.CI_BOT_GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.CI_BOT_GPG_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_config_global: true

- name: Create PR or Issue for dependent repository
env:
RELEASE_TAG: ${{ needs.notify-dependents.outputs.tag_name }}
RELEASE_URL: ${{ needs.notify-dependents.outputs.release_url }}
GIT_AUTHOR_NAME: ${{ steps.import-gpg.outputs.name }}
GIT_AUTHOR_EMAIL: ${{ steps.import-gpg.outputs.email }}
GIT_COMMITTER_NAME: ${{ steps.import-gpg.outputs.name }}
GIT_COMMITTER_EMAIL: ${{ steps.import-gpg.outputs.email }}
run: |
set -e

UPDATED_REPO="github.com/${{ github.repository }}"
REPO_NAME=$(echo ${{ github.repository }} | cut -d/ -f2)

git config --global user.name catalyst-cibot
git config --global user.email "[email protected]"
# git config --global user.name catalyst-cibot
# git config --global user.email "[email protected]"

if [ "${{ inputs.notify_type }}" == "pr" ]; then
echo "Create PR in ${{ matrix.repo }}"
Expand All @@ -81,7 +104,7 @@ jobs:
exit 0
fi

git commit -m "chore($REPO_NAME): Update $REPO_NAME to $RELEASE_TAG"
git commit -S -m "chore($REPO_NAME): Update $REPO_NAME to $RELEASE_TAG"
git push origin "$branch_name"

gh pr create \
Expand Down
2 changes: 1 addition & 1 deletion utilities/cql-to-d2/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:v3.5.21 AS python-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:DO-NOT-MERGE AS python-ci

check:
FROM python-ci+python-base
Expand Down
2 changes: 1 addition & 1 deletion utilities/earthly-cache-watcher/Earthfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
VERSION 0.8

IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:v3.5.21 AS python-ci
IMPORT github.com/input-output-hk/catalyst-ci/earthly/python:DO-NOT-MERGE AS python-ci

check:
FROM python-ci+python-base
Expand Down
Loading