Skip to content

Commit

Permalink
Merge pull request #510 from dita-ot/feature/update-ci-configuration
Browse files Browse the repository at this point in the history
Add workflow to update GitHub Actions configuration
  • Loading branch information
jelovirt authored Nov 10, 2023
2 parents d548e10 + cfe70b5 commit a8b8bf7
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,38 @@ jobs:
commit-message: 'Update ‘${{ env.RELEASE }}’ docs for ${{ github.event.inputs.dita-ot-version }}'
committer: 'DITA-OT Bot <[email protected]>'
signoff: true
token: ${{ secrets.COMMITTER_TOKEN }}
token: ${{ secrets.DOCS_RELEASE_TOKEN }}
path: website
labels: |
release-updates
update-ci:
runs-on: ubuntu-latest
steps:
- name: Check out docs
uses: actions/checkout@v4
with:
ref: develop

- name: Update GitHub Actions release workflow
uses: mikefarah/yq@master
with:
cmd: yq -i '.jobs.deploy.env.DITA_OT_VERSION = "${{ github.event.inputs.dita-ot-version }}"' '.github/workflows/release.yml'
- name: Update GitHub Actions render action
uses: mikefarah/yq@master
with:
cmd: yq -i '.inputs.DITA_OT_VERSION.default = "${{ github.event.inputs.dita-ot-version }}"' '.github/actions/render/action.yml'

- name: Create release PR
uses: peter-evans/create-pull-request@v5
with:
branch: feature/update-github-actions-${{ github.event.inputs.dita-ot-version }}
title: 'Update docs GitHub Actions for ${{ github.event.inputs.dita-ot-version }}'
body: |
Update docs GitHub Actions for ${{ github.event.inputs.dita-ot-version }}.
commit-message: 'Update GitHub Actions for ${{ github.event.inputs.dita-ot-version }}'
committer: 'DITA-OT Bot <[email protected]>'
signoff: true
token: ${{ secrets.DOCS_RELEASE_TOKEN }}
labels: |
release-updates

0 comments on commit a8b8bf7

Please sign in to comment.