Skip to content

Added new custom releases #1

Added new custom releases

Added new custom releases #1

Workflow file for this run

name: passage
on:
schedule:
- cron: "47 3 * * *"
push:
branches:
- main
paths:
- .github/workflows/passage.yml
workflow_dispatch:
concurrency:
group: passage
jobs:
fetch:
name: Fetch
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Fetch
id: fetch
run: |
git clone https://github.com/FiloSottile/passage
VERSION="$(git rev-list --count --all)"
COMMIT="$(git rev-parse --short HEAD)"
echo "version=${VERSION}.${COMMIT}" >>${GITHUB_OUTPUT}
- name: Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.BOT_GITHUB_TOKEN }}
allowUpdates: true
name: "passage v${{ steps.fetch.outputs.version }}"
tag: passage/${{ steps.fetch.outputs.version }}
draft: false
prerelease: false