Unverified Commit a729b69d authored by Dmitriy Safronov's avatar Dmitriy Safronov Committed by GitHub
Browse files

fix: accidentally workflow (#12)

parent 4e3ecd0b
Loading
Loading
Loading
Loading
+48 −0
Original line number Diff line number Diff line
name: Update

"on":
  workflow_dispatch:
  schedule:
    - cron: "0 0 * * *"

jobs:

  update:
    runs-on: ubuntu-latest

    steps:

      - name: Checkout sources
        uses: actions/checkout@v4
        with:
          fetch-depth: 0

      - name: Install jq
        uses: dcarbone/install-jq-action@v2.1.0

      - name: Get latest [ssl-refresher] git tag
        uses: dmitriysafronov/find-latest-tag@v1.0.0
        id: git-version
        with:
          repo: https://github.com/dmitriysafronov/ssl-refresher.git
          tag: 'v[0-9]{1,}.[0-9]{1,}.[0-9]{1,}'

      - name: Save latest [ssl-refresher] version into repo
        run: |
          mkdir -p files
          wget "https://raw.githubusercontent.com/dmitriysafronov/ssl-refresher/${{ steps.git-version.outputs.tag }}/ssl-refresher" -O files/ssl-refresher

      - uses: peter-evans/create-pull-request@v3
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          branch: "upgrade/ssl-refresher/${{ steps.git-version.outputs.tag }}"
          delete-branch: true
          title: "chore(deps): upgrade ssl-refresher to ${{ steps.git-version.outputs.tag }}"
          signoff: true
          committer: GitHub <noreply@github.com>
          author: GitHub <noreply@github.com>
          commit-message: "chore(deps): upgrade ssl-refresher to ${{ steps.git-version.outputs.tag }}"
          body: |
            Release notes: https://github.com/dmitriysafronov/ssl-refresher/releases/tag/${{ steps.git-version.outputs.tag }}
          draft: false
          assignees: ${{ github.repository_owner }}