Skip to content

Commit

Permalink
Chore: Update workflows (#220)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions authored Nov 6, 2024
1 parent 48b263c commit 5c8c71f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
5 changes: 0 additions & 5 deletions .github/actions/gerrit-issue-id-action/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ outputs:
runs:
using: "composite"
steps:
# - uses: actions/checkout@v4

- name: "Retrieve last commit message body"
id: retrieve
uses: os-climate/osc-github-devops/.github/actions/git-commit-message-body@main

- name: "Check commit message for required string"
id: check
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/issue-id.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,30 @@ name: "🏷️ [R] Check/Inject Issue-ID"
# yamllint disable-line rule:truthy
on:
workflow_call:
#inputs:
# ISSUE_ID_LOOKUP_JSON:
# description: "JSON lookup table mapping users to JIRA tickets"
# type: string
# required: true

permissions: {}

jobs:

issue-id:
runs-on: "ubuntu-latest"
if: ${{ vars.ISSUE_ID_LOOKUP_JSON }} != ''
permissions:
contents: read
pull-requests: write
steps:
- uses: actions/checkout@v4

- name: "Retrieve last commit message body"
id: retrieve
uses: os-climate/osc-github-devops/.github/actions/git-commit-message-body@main

# yamllint disable-line rule:line-length
- uses: os-climate/osc-github-devops/.github/actions/gerrit-issue-id-action@main
with:
issue_id_lookup_json: ${{ env.ISSUE_ID_LOOKUP_JSON }}
issue_id_lookup_json: ${{ vars.ISSUE_ID_LOOKUP_JSON }}

0 comments on commit 5c8c71f

Please sign in to comment.