Merge branch 'main' into dependabot/npm_and_yarn/node-fetch-3.3.2 #318
Workflow file for this run
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: 'example' | |
on: push | |
env: | |
DEPLOYMENT_RECORD_ISSUE_NUMBER: 28 | |
permissions: | |
issues: write | |
jobs: | |
example: | |
runs-on: ubuntu-latest | |
steps: | |
# Expect issue status at started. | |
# - Label : (None) | |
# - Assignee: (None) | |
- uses: Connehito/deploying-marker-with-issue@main | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
action: "check-marker-detached" | |
issue-number: ${{ env.DEPLOYMENT_RECORD_ISSUE_NUMBER }} | |
exit-with-error: true # true = exit with error when the marker is already exists | |
- uses: Connehito/deploying-marker-with-issue@main | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
action: "attach-marker" | |
issue-number: ${{ env.DEPLOYMENT_RECORD_ISSUE_NUMBER }} | |
exit-with-error: true # true = exit with error when the marker is already exists | |
# Issue status at this time | |
# - Label : Deploying | |
# - Assignee: $ACTOR | |
- uses: Connehito/deploying-marker-with-issue@main | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
action: "check-marker-detached-or-assigned-actor" | |
issue-number: ${{ env.DEPLOYMENT_RECORD_ISSUE_NUMBER }} | |
exit-with-error: true # true = exit with error when the marker is already exists and assigned a user who is not the actor | |
- uses: Connehito/deploying-marker-with-issue@main | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
action: "check-marker-attached" | |
issue-number: ${{ env.DEPLOYMENT_RECORD_ISSUE_NUMBER }} | |
exit-with-error: true # true = exit with error when the marker is not exists | |
- uses: Connehito/deploying-marker-with-issue@main | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
action: "detach-marker" | |
issue-number: ${{ env.DEPLOYMENT_RECORD_ISSUE_NUMBER }} | |
exit-with-error: false # true = exit with error when the marker is not exists | |
# Issue status at this time | |
# - Label : (None) | |
# - Assignee: (None) | |
- name: Set ref link | |
run: | | |
if [[ "${GITHUB_REF_TYPE}" == "branch" ]]; then | |
echo "REF_LINK=[${GITHUB_SHA:0:8}](https://github.com/${GITHUB_REPOSITORY}/commit/${GITHUB_SHA})" >> "${GITHUB_ENV}" | |
elif [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then | |
echo "REF_LINK=[${GITHUB_REF_NAME}](https://github.com/${GITHUB_REPOSITORY}/releases/tag/${GITHUB_REF_NAME})" >> "${GITHUB_ENV}" | |
fi | |
- name: Create comment | |
uses: peter-evans/create-or-update-comment@v3 | |
with: | |
issue-number: ${{ env.DEPLOYMENT_RECORD_ISSUE_NUMBER }} | |
body: | | |
@${{ github.actor }} | |
`example.yml` workflow finished by ${{ env.REF_LINK }} |