mirror of
https://github.com/simple-icons/simple-icons.git
synced 2024-12-16 01:10:30 +02:00
e049e1d5a5
* Add script to bump major version in README On lines 29-32, we could alternatively use `replaceAll`, I opted not to as it is not yet(?) part of an LTS release of NodeJS. * Bump CDN version in README automatically for new releases * Rename "bump-cdn-version.js" to "update-cdn-urls.js" * Update names of file-level constants in update-cdn-urls.js * Rename workflow setp for updating CDN URLs * Rename packageJsonFile constant in update-cdn-urls * Remove semver dependency * Generalize update-cdn-urls script
41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: Create Release Pull Request
|
|
on:
|
|
schedule:
|
|
# "At 00:00 on Sunday" (https://crontab.guru/once-a-week)
|
|
- cron: "0 0 * * 0"
|
|
|
|
jobs:
|
|
release-pr:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
did-create-pr: ${{ steps.release.outputs.did-create-pr }}
|
|
new-version: ${{ steps.release.outputs.new-version }}
|
|
steps:
|
|
- uses: simple-icons/release-action@master
|
|
id: release
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
version-bump:
|
|
runs-on: ubuntu-latest
|
|
needs: release-pr
|
|
if: needs.release-pr.outputs.did-create-pr == 'true'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
# Ensure we are checked out on the develop branch
|
|
ref: develop
|
|
- name: Bump version
|
|
run: node ./scripts/bump-version.js "${{ needs.release-pr.outputs.new-version }}"
|
|
- name: Update major version in CDN URLs
|
|
run: node ./scripts/update-cdn-urls.js
|
|
- name: Update slugs table
|
|
run: node ./scripts/build-slugs-table.js
|
|
- name: Commit version bump
|
|
uses: stefanzweifel/git-auto-commit-action@v4.11.0
|
|
with:
|
|
commit_message: version bump
|
|
commit_user_name: GitHub Actions
|
|
commit_user_email: actions@github.com
|
|
commit_author: GitHub Actions <actions@github.com>
|