Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment not showing when deploying from issue_comment workflow type #78

Open
Gideonnn opened this issue Apr 6, 2023 · 0 comments
Open

Comments

@Gideonnn
Copy link

Gideonnn commented Apr 6, 2023

I moved my workflow from on pull_request to issue_comment to save some build minutes. Deployment works fine, but GitHub does not register the deployment anymore and also I get no comment on the pr anymore.

Anyone know how to fix this?

Included a cleaned up version of the workflow beneath.

Edit: I noticed that deployments do get triggered correctly and are shown in ...repo/desployments, but the pull request page claims it didn't:
afbeelding

name: chatops

on:
  issue_comment:
    types: [created]

jobs:
  trigger:
    runs-on: ubuntu-22.04
    steps:
      - name: Trigger
        uses: peter-evans/slash-command-dispatch@v3
        with:
          token: ${{ secrets.CHATOPS_TOKEN }}
          commands: deploy

  deploy:
    runs-on: ubuntu-22.04
    needs: trigger
    steps:
      - uses: actions/checkout@v3
      - uses: actions/setup-node@v3
        with:
          node-version: '18'
      - run: npm i
      - run: npm run build
      - uses: cloudflare/pages-action@v1
        with:
          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
          projectName: my-project
          directory: dist
          gitHubToken: ${{ secrets.GITHUB_TOKEN }}
          branch: ${{ github.ref_name }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant