Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
pharos-alexandria committed Jul 29, 2024
1 parent f3c1cd7 commit 2314741
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/announce.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
name: Announce publication
name: Announce
on:
release:
types: [published]
types:
- edited
- released
- published
workflow_dispatch:
jobs:
build:
Announce:
runs-on: ubuntu-latest
steps:
- name: Get latest release version number
id: get_version
uses: battila7/get-version-action@v2
- id: get_version
name: Get version
uses: jannemattila/get-version-from-tag@v3
- name: Send toot to Mastodon with additional options
id: mastodon_toot
uses: cbrgm/mastodon-github-action@v2
with:
access-token: ${{ secrets.MASTODON_ACCESS_TOKEN }}
url: ${{ secrets.MASTODON_URL }}
message: "PTA has released an update (${{ steps.get_version.outputs.version }}). Have a look at https://doi.org/10.5281/zenodo.4066796 for more info or see it live at https://pta.bbaw.de."
message: "The Patristic Text Archive (PTA) has been updated to version ${{ steps.get_version.outputs.version }}. Have a look at https://doi.org/10.5281/zenodo.4066796 for more info or see it live at https://pta.bbaw.de."
visibility: "public"
sensitive: "false"
spoiler-text: "Latest Update"
language: "en"
post:
runs-on: ubuntu-latest
steps:
- uses: myConsciousness/bluesky-post@v5
with:
text: "PTA has released an update (${{ steps.get_version.outputs.version }}). Have a look at https://doi.org/10.5281/zenodo.4066796 for more info."
text: "The Patristic Text Archive (PTA) has been updated to version ${{ steps.get_version.outputs.version }}. Have a look at https://doi.org/10.5281/zenodo.4066796 for more info."
link-preview-url: "https://pta.bbaw.de"
identifier: ${{ secrets.BLUESKY_IDENTIFIER }}
password: ${{ secrets.BLUESKY_PASSWORD }}
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,12 @@ jobs:
DATE=`date +%Y-%m-%d`
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
lasttag=$(git describe --tags --abbrev=0)
history=$(git log $lasttag..HEAD --oneline)
export GIT_TAG=$MAJOR_VERSION.$MINOR_VERSION.$GITHUB_RUN_ID
git add -A
git commit -m "Removed failing files" -m "Release $GIT_TAG"
git tag $GIT_TAG -a -m "$DATE" -m "PASSING FILES" -m "$results"
git tag $GIT_TAG -a -m "CHANGES" -m "$history" -m "$DATE" -m "PASSING FILES" -m "$results"
git push -q origin "${GIT_TAG}"
ls -R
- name: Create release
Expand Down

0 comments on commit 2314741

Please sign in to comment.