Skip to content

Commit

Permalink
Merge pull request #25 from kachick/optional-run
Browse files Browse the repository at this point in the history
Run optional step from given inputs
  • Loading branch information
kachick authored Sep 29, 2023
2 parents 0d50545 + 6dfb221 commit 2413fce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ on:
It is an integration action of https://github.com/kachick/selfup
required: false
type: string
optional-run:
required: false
type: string
secrets:
APP_ID:
required: true
Expand Down Expand Up @@ -67,6 +70,9 @@ jobs:
run: |
nix develop --command nix run github:kachick/selfup/v0.0.2 -- run --prefix='# selfup ' --skip-by='nix run' .github/workflows/*.yml
git diff-index --quiet HEAD || git commit -m '${{ inputs.commit-message }}' .github
- name: Run optional step if given
if: inputs.optional-run != ''
run: ${{ inputs.optional-run }}
- name: Count added commits
id: count-commits
run: |
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/update-nixpkgs-and-versions-in-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
if: (github.event.sender.login == 'kachick') || (github.event_name != 'pull_request')
with:
dry-run: ${{ github.event_name == 'pull_request' }}
optional-run: |
echo 'Add another changes and git commit here, especially for .node-version/.ruby-version'
secrets:
APP_ID: ${{ secrets.APP_ID }}
APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }}

0 comments on commit 2413fce

Please sign in to comment.