Skip to content

Commit

Permalink
added: crawl action
Browse files Browse the repository at this point in the history
  • Loading branch information
Zain-ul-din committed Mar 16, 2024
1 parent 88e347b commit c2da26a
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/crawl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Crawl

on:
push:
branches:
- master

jobs:
generate_random_string:
runs-on: ubuntu-latest

steps:
- name: Set up Git repository
uses: actions/checkout@v2

- name: Generate random string
id: random_string
run: echo "RANDOM_STRING=$(openssl rand -hex 16)" >> date.txt

- name: Print random string
run: echo "${{ steps.random_string.outputs.RANDOM_STRING }}"

- name: Push to Github
run: |
git add ./date.txt
git commit -m "updated: date.txt"
git push origin master

0 comments on commit c2da26a

Please sign in to comment.