Skip to content

.github/workflows/auto_release.yml #20865

.github/workflows/auto_release.yml

.github/workflows/auto_release.yml #20865

Workflow file for this run

on:
schedule:
- cron: '0 * * * *'
env:
DOCKER_USERNAME: percygrunwald
IMAGE_NAME: percygrunwald/docker-asdf-terraform-ci-base
GIT_AUTHOR_EMAIL: [email protected]
GIT_AUTHOR_NAME: Percy Grunwald
jobs:
auto_release:
runs-on: ubuntu-latest
steps:
- id: checkout
uses: actions/checkout@v2
- id: ci-script
run: |
# -c = git commit, -p = docker push, -t = git tag,
# -u = update dockerfile
script/ci.sh -cptu
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- id: print-release-tag
run: |
printf "${RELEASE_TAG}\n"
env:
RELEASE_TAG: ${{ steps.ci-script.outputs.release-tag }}
if: steps.ci-script.outputs.release-tag != ''
- id: git-push
run: |
printf "Running git push...\n" >&2
git push
printf "Running git push tags...\n" >&2
git push --tags
if: github.actor != 'nektos/act' && steps.ci-script.outputs.release-tag != ''
- id: git-release
uses: softprops/action-gh-release@v1
with:
name: ${{ steps.ci-script.outputs.release-tag }}
tag_name: ${{ steps.ci-script.outputs.release-tag }}
if: github.actor != 'nektos/act' && steps.ci-script.outputs.release-tag != ''