Giter VIP home page Giter VIP logo

Comments (4)

theowenyoung avatar theowenyoung commented on May 16, 2024

It looks like an act run error, let me check where is wrong.

from actionsflow.

theowenyoung avatar theowenyoung commented on May 16, 2024

Hey, @MarcMogdanz , it looks like the built workflow.yml (when the first time fetch multiple feeds) is too large for act, you can change your hn.yml to this:

on:
  rss:
    url:
      # HN posts with over 500 points
      - https://hnrss.org/newest?points=500
      # Show HN posts with over 100 points
      - https://hnrss.org/show?points=100
      #
      #
      #
      # Dev blog to an interesting upcoming german Minecraft server
      - https://blog.playlegend.net/rss
      # test
      - https://dev.to/feed/tag/javascript
    config:
      filterOutputs:
        title: 1
        link: 1
      format: |
        // extract hostname from full url
        item.hostname = new URL(item.link).hostname
        return item;
jobs:
  notify:
    name: Send notifications
    runs-on: ubuntu-latest
    steps:
      # Used for debugging
      - name: Print to console
        env:
          title: ${{ on.rss.outputs.title }}
          link: ${{ on.rss.outputs.link }}
          hostname: ${{ on.rss.outputs.hostname }}
        run: |
          echo title: $title
          echo link: $link
          echo hostname: $hostname
      - name: Slack notification
        env:
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_RSS }}
        uses: Ilshidur/[email protected]
        with:
          args: |
            *${{ on.rss.outputs.title }}* (`${{ on.rss.outputs.hostname }}`)
            ${{ on.rss.outputs.link }}

Use on.<trigger>.config.filterOutputs to reduce the built yml size.

Or, you can set skipFirst: true to avoid the first time large outputs.

I have already try this config, it works fine. I'll add a doc to note people to avoid big outputs.

You may need to reset the actionsflow cache to rerun the first time feed fetching.

from actionsflow.

theowenyoung avatar theowenyoung commented on May 16, 2024

I'll close this issue for now, let me know if you have any problem

from actionsflow.

MarcMogdanz avatar MarcMogdanz commented on May 16, 2024

Thanks again for the fast response! Works like a charm now.

from actionsflow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.