Skip to content

Update numbers

Update numbers #31

Workflow file for this run

name: release
on:
push:
branches: ['main']
paths: ['numbers']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set variables
run: |
echo "DATE=$(date +'%y%m%d%H')" >> $GITHUB_ENV
echo "DATE2=$(date +'%Y/%m/%d - %H:%S')" >> $GITHUB_ENV
- name: Checkout
uses: symbuzzer/fork-checkout-repo@main
with:
persist-credentials: false
fetch-depth: 0
- name: Adding version string to "README.md"
run: |
sed -i "1s/.*/# Turkish Spam Numbers - v${DATE}/" README.md
- name: Create "Fossify Messages import file"
run: |
NUMBERS=$(paste -sd ',' numbers)
echo $NUMBERS > fossify_import
- name: Create "version" file
run: |
echo ${{ env.DATE }} > version
- name: Create and upload release asset
uses: symbuzzer/fork-github-release@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ env.DATE }}
name: v${{ env.DATE }}
body: Spam numaraları güncellendi ${{ env.DATE2 }}
files: numbers fossify_import
gzip: false
draft: false
prerelease: false
allow_override: true
- name: Commit and push changes
uses: symbuzzer/fork-push-changes@master
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}