Skip to content

Commit

Permalink
Merge pull request #1138 from opentofu/bugfix-scripts
Browse files Browse the repository at this point in the history
Further script bugfixes
  • Loading branch information
abstractionfactory authored Oct 14, 2024
2 parents c0109fa + d99b14f commit 6dc6e20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/submit-provider-key.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [[ ! "${namespace}" =~ ^[a-zA-Z0-9-]+$ ]]; then
exit 1
fi

if [[ "${providername}" = "*no response*" ]]; then
if [[ "${providername}" = "_No response_" ]]; then
providername=""
fi
if [[ -n "${providername}" ]]; then
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/issue-to-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ jobs:
URL: ${{ github.event.issue.url }}
TITLE: ${{ github.event.issue.title }}
BODY: ${{ github.event.issue.body }}
working-directory: ./src
run: |
./.github/scripts/submit-provider.sh
../.github/scripts/submit-provider.sh
submit-module:
if: contains(github.event.issue.labels.*.name, 'module') && contains(github.event.issue.labels.*.name, 'submission')
runs-on: ubuntu-latest
Expand All @@ -57,8 +58,9 @@ jobs:
URL: ${{ github.event.issue.url }}
TITLE: ${{ github.event.issue.title }}
BODY: ${{ github.event.issue.body }}
working-directory: ./src
run: |
./.github/scripts/submit-module.sh
../.github/scripts/submit-module.sh
submit-provider-key:
if: contains(github.event.issue.labels.*.name, 'provider-key') && contains(github.event.issue.labels.*.name, 'submission')
runs-on: ubuntu-latest
Expand All @@ -85,5 +87,6 @@ jobs:
URL: ${{ github.event.issue.url }}
TITLE: ${{ github.event.issue.title }}
BODY: ${{ github.event.issue.body }}
working-directory: ./src
run: |
./.github/scripts/submit-provider-key.sh
../.github/scripts/submit-provider-key.sh

0 comments on commit 6dc6e20

Please sign in to comment.