Skip to content

Commit 9696d71

Browse files
committed
try GHA for updating artifact
1 parent c8a11c4 commit 9696d71

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update Plotly Artifact
2+
3+
on:
4+
schedule:
5+
# Run once daily at 00:00 UTC
6+
- cron: '0 0 * * *'
7+
workflow_dispatch:
8+
9+
jobs:
10+
update-artifact:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: julia-actions/setup-julia@v1
15+
- run: julia deps/artifacts.jl
16+
- name: Check if Artifacts.toml changed
17+
id: check-changes
18+
run: |
19+
if git diff --quiet Artifacts.toml; then
20+
echo "changed=false" >> $GITHUB_OUTPUT
21+
else
22+
echo "changed=true" >> $GITHUB_OUTPUT
23+
fi
24+
- name: Create Pull Request
25+
if: steps.check-changes.outputs.changed == 'true'
26+
uses: peter-evans/create-pull-request@v5
27+
with:
28+
commit-message: 'chore: update Plotly artifact'
29+
title: 'chore: update Plotly artifact'
30+
body: 'Automated update of Plotly.js artifact'
31+
branch: update-plotly-artifact

0 commit comments

Comments
 (0)