Executing release on UK-Export-Finance/exip π #288
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
# EXIP Git Hub Actions | |
##################################### | |
# This GHA is responsible for creating automated | |
# GitHub release based PR. Once the PR is merged | |
# Google release please will update the `CHANGELOG.md` | |
# `README.md` and `package.json` files. | |
# Followed by tagging the commit with the appropriate version | |
# number (as per SemVer) and create a GitHub release on the tag. | |
name: Automated release | |
run-name: Executing release on ${{ github.repository }} π | |
on: | |
push: | |
branches: [main] | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
# 1. Setup test infrastructure | |
setup: | |
name: Infrastructure setup π§ | |
runs-on: ubuntu-latest | |
outputs: | |
environment: ${{ env.environment }} | |
timezone: ${{ env.timezone }} | |
steps: | |
- name: Environment π§ͺ | |
run: echo "Environment set to ${{ env.environment }}" | |
- name: Timezone π | |
run: echo "Timezone set to ${{ env.timezone }}" | |
# 2. Update files | |
release: | |
name: Release β¨ | |
needs: setup | |
environment: | |
name: ${{ needs.setup.outputs.environment }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Repository | |
uses: actions/checkout@v4 | |
- name: Create | |
uses: googleapis/release-please-action@v4 | |
with: | |
token: ${{ secrets.RELEASE_TOKEN }} | |
release-type: node |