Update Plotly Artifact #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Plotly Artifact | |
| on: | |
| schedule: | |
| # Run once daily at 00:00 UTC | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| update-artifact: | |
| 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 |