Skip to content

Update allowlist-request.yml #4

Update allowlist-request.yml

Update allowlist-request.yml #4

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: Checkout Repository
uses: actions/checkout@v2
extract-domain:
if: github.event.label.name == 'allowlist-request'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Extract Domain
id: extract_domain
run: echo "Domains field value: ${{ github.event.issue.fields.domains }}"

Check failure on line 29 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 29
- 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 }}