-
Notifications
You must be signed in to change notification settings - Fork 44
53 lines (47 loc) · 2.1 KB
/
dependency-updates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: DependencyUpdater
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # check every day at midnight UTC
jobs:
E2E-Solana-Image:
uses: ./.github/workflows/open-pr.yml
with:
reviewers: aalu1418
run: |
make upgrade-solana-image
image=$(curl https://api.github.com/repos/anza-xyz/agave/releases/latest | jq -r '.tag_name')
# outputs
echo "name=bump/solana-$image" >> "$GITHUB_OUTPUT"
echo "prTitle=[automated] bump solana image to $image" >> "$GITHUB_OUTPUT"
echo "prBody=Latest Solana mainnet release is [$image](https://github.com/anza-xyz/agave/releases/latest)" >> "$GITHUB_OUTPUT"
echo "commitString=[automated] bump solana dependencies" >> "$GITHUB_OUTPUT"
secrets: inherit
E2E-Testing-Dependencies:
uses: ./.github/workflows/open-pr.yml
with:
reviewers: aalu1418
run: |
# get CTF version in core
git clone https://github.com/smartcontractkit/chainlink.git temp-chainlink
cd temp-chainlink/integration-tests
coreVersion=$(go list -m github.com/smartcontractkit/chainlink-testing-framework/lib | awk '{print $NF}')
cd ../../
rm -rf temp-chainlink
echo "chainlink/integration-tests CTF/lib: $coreVersion"
# get CTF version in solana
cd integration-tests
solVersion=$(go list -m github.com/smartcontractkit/chainlink-testing-framework/lib | awk '{print $NF}')
echo "chainlink-solana/integration-tests CTF/lib: $solVersion"
cd ../
# compare versions
if [[ $coreVersion != $solVersion ]]; then
make upgrade-e2e-core-deps
make gomodtidy
fi
# outputs
echo "name=bump/e2e-deps-$coreVersion" >> "$GITHUB_OUTPUT"
echo "prTitle=[automated] bump e2e test deps to match chainlink/integration-tests" >> "$GITHUB_OUTPUT"
echo "prBody=chainlink/integration-tests uses chainlink-testing-framework@$coreVersion" >> "$GITHUB_OUTPUT"
echo "commitString=[automated] bump e2e <> core/integration-tests dependencies" >> "$GITHUB_OUTPUT"
secrets: inherit