DEV Community

Ishaan Sheikh
Ishaan Sheikh

Posted on

2 2

Submission for the actions hackathon

DEV ACTION

This is the post for the submission of my action for the actionshackathon on DEV.

My Workflow

This GitHub action posts a new article on DEV whenever a new release has been published on GitHub.

Submission Category:

I am submitting my action under the Wacky Wildcards category.

Yaml File or Link to Code

Below is the example YAML file for the workflow to be run

on:
  release:
    types: [published]

jobs:
  hello_world_job:
    runs-on: ubuntu-latest
    name: A job to post an article on DEV
    steps:
      # To use this repository's private action,
      # you must check out the repository
      - name: Checkout
        uses: actions/checkout@v2
      - name: Publish Release Update on DEV
        uses: sheikh005/dev-action@1.0.0 # Uses an action in the root directory
        id: publish
        with:
          dev-to-secret: ${{ secrets.DEV_TO_TOKEN }}
          tags: "news,opensource,github" # Comma separted list of tags
      - name: Get the URL of the post
        run: echo "The URL of the POST is <${{ steps.publish.outputs.url }}>"
Enter fullscreen mode Exit fullscreen mode

Additional Resources / Info

Repository

GitHub logo frikishaan / dev-action

GitHub action to create a post on DEV.to for each release published on Github.

Link to the action on the marketplace

Dev action

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay