Skip to content

Update allowlist-request.yml #3

Update allowlist-request.yml

Update allowlist-request.yml #3

name: allowlist-request
on:
issues:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'allowlist-request'
runs-on: ubuntu-latest
permissions:
issues: write
steps:
- name: Debug Event Payload
run: echo "Event payload: ${{ toJson(github.event) }}"

Check failure on line 16 in .github/workflows/allowlist-request.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/allowlist-request.yml

Invalid workflow file

You have an error in your yaml syntax on line 16
extract-domain:
if: github.event.label.name == 'allowlist-request'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Debug Event Payload
run: echo "Event payload: ${{ toJson(github.event) }}"
- name: Checkout Repository
uses: actions/checkout@v2
- name: Extract Domain
id: extract_domain
run: echo "Domains field value: ${{ github.event.issue.fields.domains }}"
- name: Append Domain to File
run: echo "Appending domain: ${{ steps.extract_domain.outputs.stdout }}" >> .source/allowlist-request.txt
working-directory: ${{ github.workspace }}
- name: Close Issue
uses: peter-evans/close-issue@v3
with:
issue-number: ${{ github.event.issue.number }}
comment: The domain will be added to the allowlist on the next successful repo commit and push.
- name: Start commit change
run: echo "MSG=Update allowlist-request.txt $(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Commit changes
uses: EndBug/add-and-commit@main
with:
author_name: github-actions
author_email: [email protected]
message: ${{ env.MSG }}