Skip to content

Commit

Permalink
Switch to peter-evans/create-issue-from-file
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Mar 13, 2024
1 parent d839894 commit a6b3187
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 12 deletions.
11 changes: 3 additions & 8 deletions .github/templates/SOLIDITY_COMPAT_ISSUE.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
---
title: ":rotating_light: Arecibo compatibility is broken"
labels: debt, automated-issues
---
Compatibility with the [Arecibo](https://github.com/lurk-lab/arecibo) dependency has been broken by commit __COMMIT__ from __PR_URL__

Compatibility with the [Arecibo](https://github.com/lurk-lab/arecibo) dependency has been broken by commit {{env.COMMIT}} from {{env.PR_URL}}
Check the [solidity compatibility workflow run](__WORKFLOW_URL__) for details.

Check the [solidity compatibility workflow run]({{env.WORKFLOW_URL}}) for details.

This issue was raised by the workflow at {{env.WORKFLOW_FILE}}.
This issue was raised by the workflow at __WORKFLOW_FILE__.

> ![NOTE]
> This is a test
27 changes: 23 additions & 4 deletions .github/workflows/solidity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ concurrency:
jobs:
solidity-compat:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
actions: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -34,6 +39,9 @@ jobs:
#- run: cargo nextest run -E 'test(test_solidity_compatibility_ipa)' --release --run-ignored all
# id: solidity-test
# continue-on-error: true
- run: exit 1
id: solidity-test
continue-on-error: true
## Prepares env vars for use in a PR comment or issue in `solidity-verifier`
- name: Set env vars
#if: steps.solidity-test.outcome != 'success'
Expand Down Expand Up @@ -73,20 +81,31 @@ jobs:
with:
repository: lurk-lab/ci-lab
path: ${{ github.workspace }}/template
sparse-checkout: |
.github/templates/SOLIDITY_COMPAT_ISSUE.md
sparse-checkout-cone-mode: false
- run: |
find $PWD/template/.github/* -type f
#if: steps.solidity-test.outcome != 'success' && (github.event_name != 'pull_request' || github.event.action == 'enqueued')
- uses: JasonEtco/create-an-issue@v2
- uses: falnyr/replace-env-vars-action@master
#if: steps.solidity-test.outcome != 'success' && (github.event_name != 'pull_request' || github.event.action == 'enqueued')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKFLOW_URL: ${{ env.WORKFLOW_URL }}
WORKFLOW_FILE: ${{ env.WORKFLOW_FILE }}
COMMIT: ${{ env.COMMIT }}
PR_URL: ${{ env.PR_URL }}
with:
update_existing: true
filename: template/.github/templates/SOLIDITY_COMPAT_ISSUE.md
filename: ./template/.github/templates/SOLIDITY_COMPAT_ISSUE.md
# Test if it updates automatically or I need to input the issue number if it exists
- uses: peter-evans/create-issue-from-file@v5
#if: steps.solidity-test.outcome != 'success' && (github.event_name != 'pull_request' || github.event.action == 'enqueued')
with:
repository: lurk-lab/ci-workflows
title: ":rotating_light: Arecibo compatibility is broken"
content-filepath: ./template/.github/templates/SOLIDITY_COMPAT_ISSUE.md
labels: |
debt
automated-issue
# Prevent merge of required check (test)
- if: steps.solidity-test.outcome != 'success' && (github.event_name != 'pull_request' || github.event.action == 'enqueued')
run: exit 1

0 comments on commit a6b3187

Please sign in to comment.