Skip to content

Commit

Permalink
commit signing for solana image bump
Browse files Browse the repository at this point in the history
  • Loading branch information
aalu1418 committed Feb 15, 2024
1 parent b80c70e commit 8121628
Showing 1 changed file with 36 additions and 16 deletions.
52 changes: 36 additions & 16 deletions .github/workflows/dependency-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,39 @@ jobs:
if ((prs > 0)); then
echo "skip=true" >> "$GITHUB_OUTPUT"
fi
- name: "Create new branch if needed"
id: branch
if: '!steps.check.outputs.skip'
run: |

Check failure on line 34 in .github/workflows/dependency-updates.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/dependency-updates.yml#L34

shellcheck reported issue in this script: SC2086:info:1:62: Double quote to prevent globbing and word splitting [shellcheck]
Raw output
.github/workflows/dependency-updates.yml:34:9: shellcheck reported issue in this script: SC2086:info:1:62: Double quote to prevent globbing and word splitting [shellcheck]

Check failure on line 34 in .github/workflows/dependency-updates.yml

View workflow job for this annotation

GitHub Actions / actionlint

[actionlint] .github/workflows/dependency-updates.yml#L34

"github.head_ref" is potentially untrusted. avoid using it directly in inline scripts. instead, pass it through an environment variable. see https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions for more details [expression]
Raw output
.github/workflows/dependency-updates.yml:34:33: "github.head_ref" is potentially untrusted. avoid using it directly in inline scripts. instead, pass it through an environment variable. see https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions for more details [expression]
echo "original=${{ github.head_ref || github.ref_name }}" >> $GITHUB_OUTPUT
git branch "bump/solana-${{ steps.solImage.outputs.image }}"
git push origin "bump/solana-${{ steps.solImage.outputs.image }}"
- uses: planetscale/[email protected]
if: '!steps.check.outputs.skip'
with:
commit_message: "[automated] bump solana dependencies"
repo: ${{ github.repository }}
branch: "bump/solana-${{ steps.solImage.outputs.image }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: "Cleanup branch"
if: '!steps.check.outputs.skip'
run: |
git reset --hard
git branch --set-upstream-to=origin/bump/solana-${{ steps.solImage.outputs.image }}
git pull
- name: Create pull request
if: '!steps.check.outputs.skip'
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6.0.0
with:
title: "[automated] bump solana image to ${{ steps.solImage.outputs.image }}"
branch: bump/solana-${{ steps.solImage.outputs.image }}
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
base: ${{ steps.branch.outputs.original }}
branch: bump/solana-${{ steps.solImage.outputs.image }}
reviewers: aalu1418
commit-message: "[automated] bump solana dependencies"
body: |
Latest Solana mainnet release is [\"${{ steps.solImage.outputs.image }}\"](https://github.com/solana-labs/solana/releases/latest)
(run CI by closing + reopening PR)
E2E-Testing-Dependencies:
E2Eing-Dependencies:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -60,19 +80,19 @@ jobs:
id: coreCTF
working-directory: ./chainlink
run: |
cd integration-tests
version=$(go list -m github.com/smartcontractkit/chainlink-testing-framework | awk '{print $NF}')
echo "chainlink/integration-tests CTF: $version"
cd integrations
version=$(go list -m github.com/smartcontractkit/chainlinking-framework | awk '{print $NF}')
echo "chainlink/integrations CTF: $version"
echo "version=$version" >> "$GITHUB_OUTPUT"
cd ../../
rm -rf chainlink
# -------- Compare to chainlink-solana/integration-tests --------------
# -------- Compare to chainlink-solana/integrations --------------
- name: Check CTF version in chainlink-solana
id: solanaCTF
run: |
cd integration-tests
version=$(go list -m github.com/smartcontractkit/chainlink-testing-framework | awk '{print $NF}')
echo "chainlink-solana/integrationt-tests CTF: $version"
cd integrations
version=$(go list -m github.com/smartcontractkit/chainlinking-framework | awk '{print $NF}')
echo "chainlink-solana/integrationts CTF: $version"
echo "version=$version" >> "$GITHUB_OUTPUT"
- name: Update integration test dependencies
if: ${{ steps.coreCTF.outputs.version != steps.solanaCTF.outputs.version }}
Expand All @@ -87,7 +107,7 @@ jobs:
run: |
prs=$(gh pr list \
--repo "$GITHUB_REPOSITORY" \
--head "bump/e2e-test-deps-${{ steps.coreCTF.outputs.version }}" \
--head "bump/e2e-deps-${{ steps.coreCTF.outputs.version }}" \
--json title \
--jq 'length')
if ((prs > 0)); then
Expand All @@ -97,11 +117,11 @@ jobs:
if: '!steps.check.outputs.skip'
uses: peter-evans/create-pull-request@b1ddad2c994a25fbc81a28b3ec0e368bb2021c50 # v6.0.0
with:
title: "[automated] bump e2e test deps to match chainlink/integration-tests"
branch: bump/e2e-test-deps-${{ steps.coreCTF.outputs.version }}
title: "[automated] bump e2e test deps to match chainlink/integrations"
branch: bump/e2e-deps-${{ steps.coreCTF.outputs.version }}
author: "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>"
reviewers: aalu1418
commit-message: "[automated] bump e2e <> core/integration-tests dependencies"
commit-message: "[automated] bump e2e <> core/integrations dependencies"
body: |
chainlink/integration-tests uses chainlink-testing-framework@${{ steps.coreCTF.outputs.version }}
chainlink/integrations uses chainlinking-framework@${{ steps.coreCTF.outputs.version }}
(run CI by closing + reopening PR)

0 comments on commit 8121628

Please sign in to comment.