diff --git a/.github/templates/SOLIDITY_COMPAT_ISSUE.md b/.github/templates/SOLIDITY_COMPAT_ISSUE.md index c083661..9d98c10 100644 --- a/.github/templates/SOLIDITY_COMPAT_ISSUE.md +++ b/.github/templates/SOLIDITY_COMPAT_ISSUE.md @@ -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 diff --git a/.github/workflows/solidity.yml b/.github/workflows/solidity.yml index fb59680..4a55e8f 100644 --- a/.github/workflows/solidity.yml +++ b/.github/workflows/solidity.yml @@ -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: @@ -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' @@ -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