-
Notifications
You must be signed in to change notification settings - Fork 9
42 lines (40 loc) · 1.39 KB
/
UpdatePlotlyArtifact.yml
File metadata and controls
42 lines (40 loc) · 1.39 KB
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
name: Update Plotly Artifact
on:
schedule:
# Run once daily at 00:00 UTC
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-artifact:
# Disable action for now until I have time to fix it
if: ${{ false }}
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
env:
GH_TOKEN: ${{ secrets.GIST_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: julia-actions/setup-julia@v1
- name: Configure git for HTTPS authentication
run: |
git config --global url."https://${{ secrets.GIST_TOKEN }}@github.com/".insteadOf "[email protected]:"
git config --global url."https://${{ secrets.GIST_TOKEN }}@gist.github.com/".insteadOf "[email protected]:"
- run: julia deps/artifacts.jl
- name: Check if Artifacts.toml changed
id: check-changes
run: |
if git diff --quiet Artifacts.toml; then
echo "changed=false" >> $GITHUB_OUTPUT
else
echo "changed=true" >> $GITHUB_OUTPUT
fi
- name: Create Pull Request
if: steps.check-changes.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'chore: update Plotly artifact'
title: 'chore: update Plotly artifact'
body: 'Automated update of Plotly.js artifact'
branch: update-plotly-artifact