Test new branch #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test new branch | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get date | |
id: date-time | |
run: | | |
echo "datetime=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
ref: "main" | |
token: ${{ secrets.RELEASE_PAT }} | |
persist-credentials: true | |
- name: Create new branch | |
run: | | |
git checkout -b release/${{ steps.date-time.outputs.datetime }} | |
git push -u origin release/${{ steps.date-time.outputs.datetime }} | |
test-reusable-workflows: | |
uses: dzmitrykliapkou/test-serverless/.github/workflows/release.yaml@main |