Generate Latest Release JSON #18
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: Generate Latest Release JSON | |
on: | |
workflow_dispatch: | |
release: | |
types: [released, prereleased] | |
jobs: | |
generate_latest_release_json: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout purple-hats repository | |
uses: actions/checkout@v3 | |
- name: Print current branch | |
run: echo "Current branch is ${{ github.ref }}" | |
- name: List contents of workspace directory | |
run: ls -al ${{github.workspace}} | |
- name: List contents of .github directory | |
run: ls -al .github/workflows | |
- name: Copy scripts to parent directory | |
run: | | |
cp .github/workflows/generate-release-catalog.sh ${{github.workspace}} | |
- name: Print current branch | |
run: echo "Current branch is ${{ github.ref }}" | |
- name: Checkout docs branch | |
uses: actions/checkout@v3 | |
with: | |
ref: 'docs' | |
- name: Print current branch | |
run: echo "Current branch is ${{ github.ref }}" | |
- name: Execute script to generate release catalog json | |
run: bash generate-release-catalog.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Checkout to purple-a11y-test repository | |
uses: actions/checkout@v3 | |
with: | |
repository: 'GovTechSG/purple-a11y-test' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
ref: 'docs' | |
- name: Execute script to generate release catalog json | |
run: bash generate-release-catalog.sh | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |